ios8

Doesn't show the back button in navigation bar in ios 9

点点圈 提交于 2019-12-11 00:28:28
问题 I have updated ios 9 in my phone. After that I have installed my app in my phone. I have faced the problem for doesn't show the back button in navigation bar. but show the back button in navigation bar in ios 8. what is the problem for that? How can I resolve that problem? 来源: https://stackoverflow.com/questions/32687549/doesnt-show-the-back-button-in-navigation-bar-in-ios-9

Conditional for MessageComposeResult in MFMessageComposeViewController with swift [duplicate]

元气小坏坏 提交于 2019-12-11 00:12:54
问题 This question already has answers here : xcode 6 beta 4 - MessageComposeResult is not convertible to OptionalNilComparisonType (4 answers) Closed 5 years ago . I am attempting to implement the MFMessageComposeViewControllerDelegate's required method func messageComposeViewController(controller: MFMessageComposeViewController, didFinishWithResult result: MessageComposeResult) { } The issue is that I can't figure out how to compare the MessageComposeResult with its associated constants in swift

camera UIImagePickerController shows black screen in device ios8

懵懂的女人 提交于 2019-12-10 23:38:23
问题 I am try below code to capture Image through camera. This code is working fine in all device below the iPhone 6 This code is not working in iPHone6 and iPhone6+. It show a black screen. enter code here (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; switch (buttonIndex) { case 0: NSLog(@"Photo Butten Clicked"); picker

UIPickerView selectRow not working as expected

无人久伴 提交于 2019-12-10 22:47:16
问题 I've created a UIPickerView which has two components, the first component (A) has a fixed number of rows set at 13. The other component (B) has a variable number of rows which is dependant on the row selected in (A). When loading the UIPickerView I am calling the following so that I can default the selection in both components, however the issue Im having is that only component (A) shows the correct values. Component (B) doesn't show the correct set of rows or the correct selection. [picker

Is @IBAction just a syntax in Swift or does @Something mean a particular thing in Swift?

孤人 提交于 2019-12-10 22:34:08
问题 Is @IBAction just a syntactical difference in Swift or does it signify something specific. Also, similar usage is seen in AppDelegate.swift where @UIApplicationMain is written. 回答1: These are attributes in swift.They have some special meaning for compiler.For eg: @UIApplicationMain synthesize main.swift file by compiler as entry point for application.From swift guide Attributes provide more information about a declaration or type. There are two kinds of attributes in Swift, those that apply

dismissViewControllerAnimated:completion: on iOS 8

纵然是瞬间 提交于 2019-12-10 21:53:10
问题 In iOS <= 7, directly after calling dismissViewControllerAnimated:completion: would result in presentedViewController being nil . In iOS 8, presentedViewController still points to the presented viewcontroller, right until the completion block is executed. [self dismissViewControllerAnimated:NO completion:^{ //self.presentedViewController is nil }]; //self.presentedViewController is nil on iOS 7, but not nil on iOS 8 So in iOS 8 we cannot rely on the property presentedViewController in order

How to make your app available in UIActivityViewcontroller listed activities

泪湿孤枕 提交于 2019-12-10 21:45:56
问题 How to make your app available in UIActivityViewcontroller listed activities. Im unable to find the exact name of this feature. Here is what I wanna do. My app is a social app where whenever other apps will share the content in UIActivityViewController I want my app to appear in the activities list. I Apologise that I have no idea about what it is called. Anyone can please help me out. 回答1: it's called App Extension, you can use share extensions to share the data between the extension and

Cordova Push Plugin iOS 8

雨燕双飞 提交于 2019-12-10 21:32:38
问题 Likely the same problem as PhoneGap Push Plugin Does Not Register iOS 8 Device but I do have an error message. I have checked the plugin version and I am getting the new version with the iOS mods. 2014-09-26 15:50:54.070 Score My Selfies[401:89341] CDVPlugin class PushPlugin (pluginName: PushPlugin) does not exist. 2014-09-26 15:50:54.071 Score My Selfies[401:89341] ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2014-09-26 15:50:54.072

iOS 8 (Swift) How do I get rid of this error: ImageIO: PNG zlib error?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 21:31:58
问题 I am making an app and I want to take most recent photo and share it using the UI Activity View Controller. For some reason, when I try to share the photo I get the error ImageIO: PNG zlib error Here's the relevant code: let imgManager = PHImageManager.defaultManager() var fetchOptions = PHFetchOptions() let screenSize: CGSize = UIScreen.mainScreen().bounds.size let targetSize = CGSizeMake(screenSize.width, screenSize.height) var imagesArray: NSMutableArray = [] fetchOptions.sortDescriptors =

iOS 7 vs iOS 8 Constraints differ in sizes

∥☆過路亽.° 提交于 2019-12-10 21:25:41
问题 While working with Auto Layout and Constraints in the Interface Builder, I noticed that I am getting different results with the same constraints when I run iOS7 vs iOS8 simulator. For example, I have a very simple Trailing Constraint set on a UIButton of 8pts. These 8pts look very different in placement when running on iOS7 vs iOS8 simulator. iOS8 simulator seems to add a few points to the constraint. It's as if there needs to be functionality for Constraint Delta's... Any ideas why