ios8

UITableView numberOfSectionsInTableView and numberOfRowsInSection called thrice on initial load

≡放荡痞女 提交于 2019-12-10 19:09:42
问题 I am making a REALLY BASIC UITableView project without any data source. I am just displaying "1" on first and only cell. I am returning 1 in both numberOfSectionsInTableView and numberOfRowsInSection . I am also doing an NSLog on both methods simply stating the name of the respective methods. On initial load, I get this: SomeShit[27511:936083] number of sections SomeShit[27511:936083] number of rows in section SomeShit[27511:936083] number of sections SomeShit[27511:936083] number of rows in

iOS 8.3 breaks automatic cell height

百般思念 提交于 2019-12-10 18:56:47
问题 Long time reader, first time poster. I use automatic cell height with auto layout in my app. In iOS 8.3 and 8.4, this appears to be broken. I have a sample project. When built in 8.2 or lower, it works properly. The cell heights are determined by Autolayout. When built in 8.3 or 8.4 it doesn't work. I have searched online and I don't see anyone posting about this issue. Take a look at the screenshots below. Any help is appreciated. Cell Height Project ZIP Screenshot comparison http://jeffburg

Show another view controller at the first launch and not again

江枫思渺然 提交于 2019-12-10 18:27:34
问题 I am making an application with swift that has two view controllers(main page, login page) and I want to show login page at the very first launch. So I used this code. class ViewController: UIViewController { override func shouldPerformSegueWithIdentifier(identifier: String!, sender: AnyObject!) -> Bool { if identifier == "LoginSegue" { var segueShouldOccur : Bool let isFirst:Bool = NSUserDefaults.standardUserDefaults().boolForKey("isFirst") if isFirst == false { segueShouldOccur = true

Any working sample code for CKDiscoverAllContactsOperation for IOS8 beta CloudKit?

那年仲夏 提交于 2019-12-10 18:01:16
问题 I have been playing with icloud in the ios 8 beta, and the CloudKitAtlasAnIntroductiontoCloudKit sample project has been very helpful. https://developer.apple.com/library/prerelease/ios/samplecode/CloudAtlas/Introduction/Intro.html But I wanted to use the CKDiscoverAllContactsOperation class and I cannot find any sample code for it anywhere at all and the online documentation is not very helpful. https://developer.apple.com/library/prerelease/ios/documentation/CloudKit/Reference

Xcode 6 GM with iPhone 5s (iOS 8 GM) - 0xE8000070

爱⌒轻易说出口 提交于 2019-12-10 17:58:16
问题 I'm using Xcode 6 GM Seed (build 6A313) with iPhone 5s (Model A1530, iOS 8 build 12A365). I connect the iPhone via USB lightning cable. But in Xcode, it shows as: "iPhone 5s (unavailable)". Further investigation: I open Xcode menu > Window > Devices , it shows the following error: An error was encountered while enabling development on this device. Please try rebooting and reconnecting the device. (0xE8000070) I reboot and reconnect my iPhone 5s, the same error is shown. This device was used

UITextField inside UITableViewCell swipe to delete issue

僤鯓⒐⒋嵵緔 提交于 2019-12-10 17:52:14
问题 Since iOS 8 I encounter an issue with the swipe to delete gesture on custom UITableViewCell. The problem seems come from UITextField inside the contentView of UITableViewCell. It seems to be a problem in iOS 8, I have the same code working fine in iOS 7. How can I keep the UITextField editable and the swipe to delete gesture working at the same time? 回答1: The following worked for me: self.tableView.panGestureRecognizer.delaysTouchesBegan = YES; 回答2: I found a workaround for my issue in iOS 8

What i have to use to repeat local notifications weekly in iOS 8?

懵懂的女人 提交于 2019-12-10 17:37:03
问题 I'm new in ios developing and I'm trying to repeat a local notification weekly. I've looked at the documentation WeekCalendarUnit it's deprecated in ios 8. I've searched for a solution here and on the web but i can'f find anything. The only things not deprecated about "week" available in XCode 6 beta 4 are: static var CalendarUnitWeekday: NSCalendarUnit { get } static var CalendarUnitWeekdayOrdinal: NSCalendarUnit { get } static var CalendarUnitWeekOfMonth: NSCalendarUnit { get } static var

presentPopoverFromRect not displaying popover in iOS8 beta

让人想犯罪 __ 提交于 2019-12-10 17:32:37
问题 I am migrating an iOS7.1 iPad app to iOS8. I just downloaded Xcode 6 Beta, and ran the application on a simulator. First thing I notice is the popovers which worked fine in iOS7.1 don't work anymore. The way I an creating the popover is: // the popover controller UIPopoverController *popOverController; // the content to be shown in the popover DropdownViewController dropdownVC = [self.navigationController.storyboard instantiateViewControllerWithIdentifier:@"DropdownViewController"]; //

PFUbiquity error when using Core Data and iCloud

橙三吉。 提交于 2019-12-10 17:23:42
问题 I am using iCloud to sync my Core Data store. This works fine. I just noticed that when I launch the app I get the following error message. Is this normal? Is there something I can do to prevent it? Thanks 2014-12-06 10:06:37.337 -[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](808): CoreData: Ubiquity: nobody~sim352B6DF3-0975-5C4B-B561-086A3032D6EA:ContentKeyName Using local storage: 1 2014-12-06 10:06:37.382 __60-[PFUbiquitySetupAssistant canReadFromUbiquityRootLocation:]_block

Safari implementation of indexeddb is very slow

无人久伴 提交于 2019-12-10 17:22:16
问题 Apple recently added support for indexeddb in both iOS8 Safari and Safari 7.1 on OSX. I am attempting to use this in a web application that stores about 65,000 records in indexeddb and queries them using some compound indexes. It's working for me, but compared to Chrome's implementation of indexeddb, it's really, really slow. To be specific... a query that takes 2ms against Chrome's indexeddb takes 500ms against Apple's indexedbb. This particular query is using a compound indexeddb index (2