ios8.3

Grey out return key programmatically

妖精的绣舞 提交于 2020-08-26 10:45:49
问题 I am looking to enable the return key of a UITextField keyboard if (and only if) the user inputs a valid email address. I have tried a solution that dates back from 2009 which uses the private method setReturnKeyEnabled . Unfortunately, this method does not seem to exist anymore: No known instance method for selector 'setReturnKeyEnabled:' How can I programmatically enable and disable the return key of a keyboard? 回答1: All the other solutions do not answer the question. OP wants to "gray" out

Errors with Alamafire SDK with XCode 6.3 and iOS 8.3

时光毁灭记忆、已成空白 提交于 2020-01-25 11:03:28
问题 Anyone please let me know what is this all about? I am stuck since a week on this and no help from searching. I posted my query to the developer of Alamofire but still no response. Please help! I am totally confused what is wrong in the integration of Alamofire. I have followed every step and this issue is coming with XCode 6.3 as before it was running properly. When I am adding the Framework under "Copy Frameworks", it is adding the Framework twice showing different paths but when I am Going

How to handle “Turn ON Location Alert” on Calendar App, Its an iOS issue?

折月煮酒 提交于 2020-01-17 04:24:10
问题 Steps to produce this issue of iOS Calendar App. (for this issue you must have already 'Allow' location service for calendar app) 1) Go To Settings 2) Turn Off Location services 3) Go To Calendar App 4) Add New Event 5) Select Location to enter You will see "Turn ON Location Services To Allow....." Alert with "Settings" and "Cancel" buttons. But alert will get disappear in 1-2 seconds and app displays Location search screen. How to handle this event? Or is there any solution for this case? 来源

TableViewDatasource and delegate not called when tableview is inside collectionview cell

*爱你&永不变心* 提交于 2020-01-06 19:29:08
问题 I have placed a uitableview inside collectionviewcell and have coded as below in the collectionviewcell class.But the datasource and delegate methods are not being called can any help me out to fix the issue - (id)initWithCoder:(NSCoder *)aDecoder { if (self = [super initWithCoder:aDecoder]) { arrayMenuAlerts=[NSMutableArray arrayWithObjects:@"Suri",@"John",@"Phillip",@"Sachin", nil]; [self.contentView addSubview:tableView]; tableView.dataSource=self; tableView.delegate=self; } return self; }

How to I extract a PHAsset's Location property?

痞子三分冷 提交于 2020-01-06 14:09:44
问题 Xcode says that PHAsset doesn't have the 'location' member. What's the remedy for Swift? 回答1: Short answer: you might have forgotten to import CoreLocation; import Photos import CoreLocation let asset: AnyObject? = nil if let asset = asset as? PHAsset { let location = asset.location } When I remove the CoreLocation import, I can replicate your error. 来源: https://stackoverflow.com/questions/30249163/how-to-i-extract-a-phassets-location-property

Has anything changed with custom UITableView prototype cells constraints since iOS 8.3?

感情迁移 提交于 2020-01-03 13:43:26
问题 I have recently installed iOS 8.3 on my iPhone (I had iOS 8.1 before). I also updated the iOS SDK from iOS 8.1 to iOS 8.3. Since I updated it some custom prototype cells I had seem to be misplaced. Has anything changed from iOS 8.1 to iOS 8.3 regarding the way constraints are handled? EDIT: I tried the solution suggested but does not work for me. Will add more details on my cells in few seconds. I added this to the custom cell class: -(void) updateConstraints{ [super updateConstraints]; [self

How can I detect if device is an iPad in iOS 8.3?

巧了我就是萌 提交于 2019-12-30 18:43:24
问题 We updated our SDK to iOS 8.3, and all of a sudden, our iPad detection method doesn't work properly: + (BOOL) isiPad { #ifdef UI_USER_INTERFACE_IDIOM return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad; #endif return NO; } the ifdef block is never entered, and so return NO; is always run. How do I detect if the device is an iPad without using UI_USER_INTERFACE_IDIOM() ? I'm using: Xcode 6.3 (6D570) iOS 8.2 (12D508) - Compiling with iOS 8.3 compiler Deployment: Targeted Device Family:

Could not load NIB in bundle using storyboard

邮差的信 提交于 2019-12-24 14:54:13
问题 With the last version of iOs 8.3, I get this error when I run one of my app: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle The app has 2 storyboards, one for iPhone (working normally) and the other for iPad (crashing). I've tried the suggestions of this topic with no results: Xcode 6.3: Could not load NIB in bundle In my case I'm using StoryBoards and I've no flag on "Use size classes". Until iOs 8.2 the app

Xcode 6.3 not running iOS 8.4 - update to 6.4 fails

我只是一个虾纸丫 提交于 2019-12-22 04:28:10
问题 I have upgraded my iOS to 8.4, then I tried to run Xcode 6.3, it asks it can't mount the device since it's running 8.4 version (".. running a version of iOS that is not supported by this version of Xcode.") When I try to upgrade Xcode to 6.4 - update fails every time with error message (try again using purchases). Any suggestions how to solve this? 回答1: Delete /Applications/Xcode.app . Download Xcode 6.4 from the Apple Developer Download site. Mount the .dmg and extract Xcode.app into

[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960 in xcode8

白昼怎懂夜的黑 提交于 2019-12-22 03:33:08
问题 run in ios8.3 ,but run in ios9 or 10 hasn't this problem. -[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960 2016-09-19 18:08:21.025 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960' *** First throw call stack: (0x186d8c2d8 0x1985b00e4 0x186d933a4 0x186d90154 0x186c92ccc 0x1001c1e74 0x1001c1b7c 0x1001c143c 0x1001c1cfc 0x100311e0c 0x1003116d0