ios6

Group table view background color is deprecated in ios 6.0 [duplicate]

会有一股神秘感。 提交于 2019-12-03 07:10:03
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: is groupTableViewBackgroundColor deprecated on iOS 6? I am getting this warning on my storyboard in iOS 6. I would hover to see the replacement method, but since I'm viewing the storyboard it shows me nothing. How can I easily set the background color? Seems like I should be able to do this from the Interface Builder. 回答1: Open your storyboard, check all views in the Attributes Inspector and change all views

UIApplication's -canOpenURL: -openURL: return misleading result

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 07:09:52
问题 Since iOS6, I can't tell whether the application can launch Safari or not. If Safari is restricted on the device (Settings>General>Restrictions), nothing happens when trying to open a URL, and there's no indication of what went wrong: NSURL *url = [NSURL URLWithString:@"http://www.google.com"]; [[UIApplication sharedApplication] canOpenURL:url]; // Returns YES [[UIApplication sharedApplication] openURL:url]; // Returns YES However, Safari does not launch, and the user is left wondering why my

Show UIPickerView like a keyboard, without UITextField

ぃ、小莉子 提交于 2019-12-03 06:49:07
I'm looking for a way to present a UIPickerView when the user taps on a UIBarButtonItem . Imagine a filter for the table view results. I know I could use a UITextField inputView, but this would not be the case -- all I have is a UIBarButtonItem and a UITableView . I've seen into using a UIActionSheet , but it does not look natural, specially when it's animating to show. Would animating the UIView on and off the screen manually the only option? The app is iOS 6+ and iPhone only, so I don't need to keep compatibility with any other versions/idioms. It might not be your only option but animating

Apple Mach-O Linker Error ZBarSDK error when building for distribution

跟風遠走 提交于 2019-12-03 06:47:49
问题 I just got this same error when using ZBarSDK, a bar scanning library for iOS. It runs fine when I upload it to my development device or test it on the iOS6 simulator. But when I try to run it for Distribution it fails with: (null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/quique123/Documents/iphone apps/ScanThis/ZBarSDK/libzbar.a for architecture armv7s where libzbar.a is the library from the sdk. Any ideas? 回答1: Open up the ZBar code Mercurial code repo

IOS6 landscape playing embedded youtube video from a uiwebview within an only portrait iPhone app

人盡茶涼 提交于 2019-12-03 06:46:41
I've got an iPhone application with a storyboard,few xib and custom cells. The application is set as a "portrait" as "supported interface orientation" (i mean everything is display like that). In my custom cells, there is Uiwebview that is linked to a youtube embedded video, when i clicked it the video start to playing, but my problem is that they are always playing in "portrait" mode. I've read lots of things that solve this problem but only in ios5. Actually : I can identify when the video start or stop playing. I can identify the device orientation. But i can't (I want) switch (Force)

UIActivityViewControllerCompletionHandler How to?

若如初见. 提交于 2019-12-03 06:45:57
问题 I am trying to use the UIActivityViewControllerCompletionHandler , but i dont quite get how.. I want to detect when the user finishes or dismisses this view controller ( UIActivityViewController ). Anyone knows how? 回答1: typedef void (^UIActivityViewControllerCompletionHandler) (NSString *activityType, BOOL completed); The second parameter of the completion handler tells you whether the user dismissed the controller. If they dismissed the controller, completed will be set to NO . There's more

Could not launch “<appName>” failed to get the task for process <processNumber>?

放肆的年华 提交于 2019-12-03 06:28:08
问题 Using Xcode 4.5.2 and building for iOS4 or newer, I get this message when building for my device (iOS 6.0.1 on 4s). I dismiss the dialog then relaunch the app on my device which seems to work. I am newer to iOS development, so I aplogize in advance if this is a silly question. Thank you in advance for your help. 回答1: My issue was using Distribution provisioning profile for signing the app, once I made a development provisioning profile, the app installed and ran on iPhone just fine. 回答2: The

How can I set the entire header view to UICollectionView?

点点圈 提交于 2019-12-03 06:23:16
I want to set the header to collection view, just like UITableViewController's setTableHeader does. I found the way to set the each section's header on collection view, but I couldn't find how to set the header view of the entire header. Apple's reference of UICollectionViewLayout says "Supplementary views present data but are different than cells. Unlike cells, supplementary views cannot be selected by the user. Instead, you use supplementary views to implement things like header and footer views for a given section or for the entire collection view. Supplementary views are optional and their

Fetch Facebook friend list using SLRequest in ios 6.0

梦想的初衷 提交于 2019-12-03 06:20:34
问题 I integrated facebook in ios 6.0 as decribed How to integrate Facebook in iOS 6 using SLRequest? But I am not able to fetch the facebook friend list using SLRequest . Can anyone know how to do this? I want to implement "Play with Friends" kind of features in my game. Thanks 回答1: I figured it how it should work. The below code is working fine for me. NSArray *accounts = [accountStore accountsWithAccountType:facebookAccountType]; ACAccount *facebookAccount = [accounts lastObject]; NSString

Get GNU C Compiler working on iOS 6.x

橙三吉。 提交于 2019-12-03 06:08:10
问题 I have a jailbroken (evasi0n) 4th generation iPad, with iOS 6.1 firmware. Through Cydia I've installed Mobile Terminal, version 520-2. Then, following this tutorial, I've downloaded and installed CSU, Link Identify Editor, LibGCC, GCC and Headers/Libraries. During installation there were not any problems. The tutorial and the project are updated respectively to Feb 15, 2012 and Feb 18, 2012, so they work fine till iOS 5.x (I've tested the procedure on my iPhone 4S, iOS 5.1.1 and it works, so