ios6

How can I present a ModalViewController from a UIActivity item picked from UIActivity View Controller?

陌路散爱 提交于 2019-12-22 05:33:14
问题 I am working on an app that presents some data in a detailViewController. I have a rightBarButton in the navbar that presents a UIActivityViewController that is filled with my own UIActivity sublclassed items. Most of them work fine as they are just changing a small aspect to the data from the detail view, but I need one of them to open a modalViewController when selected. I keep getting the following warning from the console..... Warning: Attempt to present <UINavigationController:

What if Twitter or Facebook accounts are not configured on iOS 6?

爱⌒轻易说出口 提交于 2019-12-22 05:22:45
问题 Does anybody know a smart way to bring the user to enter their Facebook or Twitter account login information, if they aren't already logged in? For example, a user tries to log in my application with Facebook without configuring the Facebook account in the iOS settings. Can I ask him to do it with an alert, for example, but how can I bring him to the exact section of settings for that? 回答1: @rckoenes is correct. Under normal circumstances there is no way to manually send the user to

What if Twitter or Facebook accounts are not configured on iOS 6?

血红的双手。 提交于 2019-12-22 05:21:29
问题 Does anybody know a smart way to bring the user to enter their Facebook or Twitter account login information, if they aren't already logged in? For example, a user tries to log in my application with Facebook without configuring the Facebook account in the iOS settings. Can I ask him to do it with an alert, for example, but how can I bring him to the exact section of settings for that? 回答1: @rckoenes is correct. Under normal circumstances there is no way to manually send the user to

How to access passes from passbook in my app?

拟墨画扇 提交于 2019-12-22 05:11:51
问题 I'm creating app in which I'm adding and showing passes from passbook app of iOS6 to my app. But when I run application on simulator it's showing added passes but when I run same on Device it's showing that my passbook is empty. I have followed iOS6 tutorial integrating passbook your applications link for creating, adding and showing passes. for accessing passes I have used following code - NSArray * passArray = [_passLib passes]; NSLog(@"number of passes in library are: %d",[passArray count]

UITextField autocapitalizationType UITextAutocapitalizationTypeAllCharacters not working on device

喜夏-厌秋 提交于 2019-12-22 05:06:25
问题 You can set the autocapitalizationType property of a UITextField so all input is in upper case. I find that does work fine on the simulator (when actually tapping the simulator's keypad, not the Mac's keyboard), but not on the device? Everything stays lowercase. In the UICatalog demo I added to the textFieldNormal method: textFieldNormal.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; Added a delegate too, to display the actual autocapitalizationType for the UITextField: -

iCloud Time out. (using iCloud + Core Data + Magical Record

柔情痞子 提交于 2019-12-22 04:50:50
问题 I started an app test to use Core Data and iCloud (using Magical Records). After a lot of troubles to configure Provisioning Profiles and Entitlements, the app finally runs. After a while the app crash and throw this message:: 2012-12-31 03:42:07.079 iCloudTest[252:1103] -[PFUbiquitySafeSaveFile waitForFileToUpload:](268): CoreData: Ubiquity: <PFUbiquityPeerReceipt: 0x1cd5a420>(0) permanentLocation: <PFUbiquityLocation: 0x1cd57b30>: /private/var/mobile/Library/Mobile Documents/MA5BADG5AW~com

Is there any severe changelog for iOS6?

风流意气都作罢 提交于 2019-12-22 04:45:11
问题 Is there any "severe" or "critical" changelog for iOS6? I believe Apple's official documentation on "What's new" is very poor for navigation(too large), since there is only "good" new stuff. But nobody ever said that IBAction for touchUpInside is now superior to gestureRecognizer or that CLLocationManager already runs on main thread. These are things I came across and found them afterwards in the Apple documentation. Since it is too large, it is too much to read it and then remember it and

XCode 4.5 giving me “SenTestingKit/SenTestKit.h” file not found, but works on 4.4.1

非 Y 不嫁゛ 提交于 2019-12-22 04:00:28
问题 I just installed XCode 4.5 and it's giving me a 'SenTestingKit/SenTestingKit.h" file not found error on one of my existing projects. This error only happens in XCode 4.5, but it compiles fine on 4.4.1. I've checked that the SenTesting framework has been added to the test target and I verified that the same error occurs on a few other machines. Has anyone else come across this? Thanks in advance for your wisdom! UPDATE I was able to fix this issue by placing quotes around some of the framework

NSAttributedString '\n' ignored

白昼怎懂夜的黑 提交于 2019-12-22 03:21:54
问题 I have a single view whose only UI element is a UITextView . In viewDidLoad: I create an attributed string with "Text\n" and set the text view's attributed text as such: NSAttributedString *string = [[NSAttributedString alloc] initWithString:@"Text\n"]; [self.textView setAttributedText:string]; My problem is that the line break is ignored when I run the app. If I use an NSString and setText: that doesn't happen. NSString *string = [[NSString alloc] initWithString:@"Text\n"]; [self.textView

ios 7 tableView didSelectRowAtIndexPath shows blank data on first selection

北慕城南 提交于 2019-12-22 01:23:05
问题 I have some apps designed for iOS 6 and today I went to upgrade them to iOS 7. They are a simple table view lists and when a record is selected it displays details about that row on another screen. This worked flawlessly in iOS 6. With iOS 7 when I select a row it shows a blank data page on the first selection. If I then go back to the list and reselect the item it then displays the proper data.. After this first blank display it will work fine for any other records .. I am racking my brain