ios8

People Picker with ios 7, and ios 8 [duplicate]

∥☆過路亽.° 提交于 2019-12-21 21:32:00
问题 This question already has answers here : ABPeoplePickerNavigationController changes with iOS8? (3 answers) Closed 5 years ago . I have people picker working on ios 7, and I'm trying to add compatibility for ios 8. I've added both methods into one but I get an error that says expected identifier or '(' on the opening bracket before NSString *contactName. Any suggestions would be great! - (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:

People Picker with ios 7, and ios 8 [duplicate]

北慕城南 提交于 2019-12-21 21:26:16
问题 This question already has answers here : ABPeoplePickerNavigationController changes with iOS8? (3 answers) Closed 5 years ago . I have people picker working on ios 7, and I'm trying to add compatibility for ios 8. I've added both methods into one but I get an error that says expected identifier or '(' on the opening bracket before NSString *contactName. Any suggestions would be great! - (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:

iOS Swift: unsafeMutableAddressor crash on iOS 8

我与影子孤独终老i 提交于 2019-12-21 20:52:34
问题 With the stack trace, unsafeMutableAddressor crash seems to be when it access AppConstant.kShowOverlay from controller's viewDidLoad() I have defined AppConstant.swift like below: struct AppConstant { // MARK: Properties static let kShowOverlay = false } Following is the stack trace from crashlytics: Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000048 0 libswiftCore.dylib 0x51bfc5c _TTWuRq_Ss9Indexable_GVSs5Sliceq__Ss14CollectionTypeSsFS1_10suffixFromuRq_S1_

iOS Simulator interface blurry in Xcode 6 GM iOS 8

大城市里の小女人 提交于 2019-12-21 20:36:13
问题 I've been testing my apps under the iOS 8 Simulator in Xcode 6 GM but for some weird reason, the app interface is displaying blurry, like its been slightly zoomed. Even the status bar is zoomed in the same way. Edit: When the Launch Image loads, the zoom is correct and everything including the status bar is sharp, but then once the app loads fully, everything zooms. Has anyone else noticed this or have a fix? Thanks! 回答1: I suppose you have not added launch images for iphone 6 and iphone 6

UIButton shadow on all 4 sides

人走茶凉 提交于 2019-12-21 20:17:20
问题 I am trying to generate shadow for a UIButton. Below is what I am using. myButton.layer.shadowColor = [UIColor blackColor].CGColor; myButton.layer.shadowOpacity = 0.5; myButton.layer.shadowRadius = 1; myButton.layer.shadowOffset = CGSizeMake(4, 4); myButton.layer.masksToBounds = NO; But its generating shadow on right and bottom. Is there way where I can have shadow on all 4 sides? As an another solution, I am do this by putting image with shadow behind the button, but I don't want to go that

Camera show black screen in ios 8

房东的猫 提交于 2019-12-21 20:12:46
问题 This code for capturing image one by one from camera,but after taking one image next time camera will open but with black screen(like it,s shutter close).all other ios version its working,but not working in ios 8.please tell me how can i solve it? -(void)openCamera { if(![PickerHandler doesDeviceSupportMediaType:ITEM_TYPE_PHOTO]) { [PickerHandler showNoDeviceSupportWarningForMediaType:ITEM_TYPE_PHOTO withDelegate:self]; } else { UIImagePickerController *picker = [[UIImagePickerController

VoiceOver announces dimmed instead of disabled for buttons

别等时光非礼了梦想. 提交于 2019-12-21 20:00:13
问题 iOS 8.x VoiceOver announces dimmed instead of disabled for buttons that have been disabled. Is there a way to programmatically get VoiceOver to say "disabled" instead of "dimmed"? 回答1: There are ways to do what you want, but you absolutely should not use them. The announcement "Dimmed" occurs, when the User Interaction Enabled trait is set to NO . This is the way VoiceOver users are use to on screen, focusable, but disabled elements being announced. Forcing your app to behave in another

How to programmatically disable iOS 8 video capture in Mac Yosemite?

…衆ロ難τιáo~ 提交于 2019-12-21 19:57:06
问题 Apple released a new feature allowing movie recording via QuickTime player. All you need to do is to connect the iOS 8 device to a Mac Yosemite machine, run QuickTime and set the connected device as the source of the movie. (Like explained here: http://www.tekrevue.com/tip/record-iphone-screen-quicktime/) I would like to prevent QuickTime to record a movie while my application is running. Any idea how can I do that? Any value I can change in plist? Any special event I can listen to? Any other

How can I dynamically resize a header view in a UICollectionView?

拈花ヽ惹草 提交于 2019-12-21 19:42:57
问题 I have header (a UICollectionReusableCell) in a UICollectionView whose height needs to be variable. How can I have it resize itself according to the height of its contents? I do not need to support iOS 7, and Autolayout solutions are preferable (if they exist). 回答1: This is how I solved it. I wish it was more elegant. Set the UILabel in the header view to have a numberOfLines value of 0. This will let it resize itself. Move the header out of the storyboard and into a xib. In collectionView(_

If Device Supports Touch ID

巧了我就是萌 提交于 2019-12-21 18:13:45
问题 Wondering how I can determine if the device the user has supports the Touch ID API? Hopefully have this as a boolean value. Thanks! 回答1: try this: - (BOOL)canAuthenticateByTouchId { if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { return [[[LAContext alloc] init] canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:nil]; } return NO; } or like @rckoenes suggest: - (BOOL)canAuthenticateByTouchId { if ([LAContext class]) { return [[[LAContext alloc] init]