ios7

Post multiple images using SLComposeViewController on Facebook/ Twitter?

a 夏天 提交于 2019-12-11 09:36:48
问题 I am an iOS developer and I am currently using SLComposeViewController to share a post on Facebook/Twitter. My issue is that I have to post multiple images in a single post. I have done this as follows: SLComposeViewController* mySLComposerSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [mySLComposerSheet setInitialText:textTobeShared]; mySLComposerSheet addURL:[NSURL URLWithString:@"http://click-labs.com/"]]; for(int count=0;count<imageArray.count

Issues with iOS 7 and scrolling through a UIScrollView that contains UIButtons

谁说胖子不能爱 提交于 2019-12-11 09:19:17
问题 I've been tasked with updating an app we have that I didn't write. It contains a scrollview that scrolls horizontally and only contains UIButtons. The buttons not only have an action to open the app they represent, but they can be dragged if tapped and held. There is another scrollview below the scrollview in question that accepts the dragging of the buttons. Everything has and is working as expected pre iOS 7. On an iOS 7 device, the button taps are being registered as soon as the scrollview

UITabBar badge position in iOS7

大城市里の小女人 提交于 2019-12-11 09:17:53
问题 Is there anyway to position UITabBar badge? It looks little displaced in iOS7. In iOS7, it is displaced towards next tab bar item. I have used a custom tab bar item. UINavigationController *navController = [self.viewControllers objectAtIndex: 0]; UIViewController *viewController = [navController.viewControllers objectAtIndex:0]; CustomTabBarItem *tabBarItem = [[CustomTabBarItem alloc] initWithTitle:EMPTY_STRING image: nil tag:2]; [tabBarItem setImageInsets:UIEdgeInsetsMake(-14.5, 0, 14.5, 0)]

ios 7 - transparency in IB not working correctly? setting transparency programmatically also isn't working?

允我心安 提交于 2019-12-11 08:55:37
问题 I have created two UIViewControllers in IB. PROBLEM 1: I can't make the 2. VC transparent. I have read a lot of stackOverFlow solutions but nothing seems to work in my case. I have tried the following setup in IB both in my current project and in this simple project and something strange occurs (IB,for 2.VC): Setting the alpha value below 0,5 Setting opaque to "checked" Setting the background color to "black" https://imageshack.com/i/kqdXWk9Jp The second VC gets pushed when I click "GO TO

How to read data from file placed in server through url link in ios swift (4)?

两盒软妹~` 提交于 2019-12-11 08:47:46
问题 I have written code for retrieving data from file or download that file and show in your phone. But I don't understand why it is not displaying data. When I opened that file it shows blank and but it is printing some hexadecimal code in a console. I am very new to this IOS development, kindly please help me this. I want to retrieve data from the server through a link, and display it on the mobile. Thanks in advance you can help with some alternate way. Below is my code let username = "xxxx"

Send email from iOS app using SendGrid

时间秒杀一切 提交于 2019-12-11 08:37:57
问题 I am trying to to use mail api from sendgrid.com but everytime it finishes with failure block. Also I don't understand how to send the image as an attachment in the email. Can anybody tell me whats wrong in below code & how can I send image ? I am using below code for now -(void)sendEmail { NSMutableDictionary *params = [[NSMutableDictionary alloc]init]; [params setValue:@"username" forKey:@"api_user"]; [params setValue:@"sdsfddf23423" forKey:@"api_key"]; [params setValue:@"test@gmail.com"

Orientation issue in Landscape mode while opening camera in iOS 7 in iPhone

南楼画角 提交于 2019-12-11 08:36:33
问题 I am having an app which is only in Landscape Mode. In my app I am opening the Camera from one of my views. It is working well for my iPad but on iPhone it crashes. It is working well in iOS 6 but the app crashes for iOS 7 and only for iPhone. Below is my code. if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { ipc=[[UIImagePickerController alloc] init ]; ipc.delegate=self; ipc.sourceType=UIImagePickerControllerSourceTypeCamera; [self

In box2d for iOS, how to find the distance between two circular bodies?

人走茶凉 提交于 2019-12-11 08:32:11
问题 I am using the following code to get the distance between two circular bodies of different radius: distance = b2Distance(body1->GetPosition(), body2->GetPosition()); I have realized that variable distance is storing the distance between the two centers of the bodies, but not the distance between the borders. What I want is distance=0 when the two bodies are touching. How can I do that? I've been trying this code but it fails: b2DistanceInput *distanceInput; distanceInput->transformA = body1-

Disable zoom in a UIWebView but keep other user interaction

纵饮孤独 提交于 2019-12-11 08:31:49
问题 I have a UIWebView that shows some text, I want to disable zoom/unzoom but I want to detect when users tap on a link. I have tried with disabling MultiTouch but zoom is still working. 回答1: Setting the minimumZoomScale and maximumZoomScale on your webview's UIScrollView to be 1.0 should prevent the webview from zooming. webview.scrollView.maximumZoomScale = 1.0; webview.scrollView.minimumZoomScale = 1.0; 回答2: Try this - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return

How to know about app launched and details jailbreak iOS 7

孤者浪人 提交于 2019-12-11 08:29:37
问题 I am making a tweak for iOS 7 , in which I want to know about app launch event, and the details of app being launched (name and identifier). So far the only useful framework I have found is SpringBoardServices.framework . The header files which may be/are useful to track app launch event include: SBAppLaunchUtilities.h SBLaunchAppListener.h If I am on right track, can anyone provide me information about their methods usage? There is no relevant information or guide present on iphonedevwiki .