ios8

sessionWithConfiguration freezing iOS 8 iPhone 4S on new Xcode 6.0.1

二次信任 提交于 2020-01-02 23:14:22
问题 I am experiencing a disturbing issue when trying to execute one of my apps on an iPhone 4S with iOS8 and Xcode 6.0.1. What happens is that the control seems to freeze in the last instruction of the block: dispatch_once(&onceToken, ^{ NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:@"myBackgroundSessionIdentifier"]; NSLog(@"configuration=%@", configuration); configuration.allowsCellularAccess = YES; configuration

Keyboard size is bigger

萝らか妹 提交于 2020-01-02 22:27:17
问题 I wanna show keyboard smaller but causing problem compare both images , keyboard size is bigger than first image and also vertical spacing between two character is more when i add ratina 4.7 splash screen keyboard showing smaller but my app design causing problem and when i remove 4.7 splash screen working fine but keyboard showing bigger How i can show keyboard smaller without design problem I searched lot but never get solution of this problem 回答1: Same Issue with my App When complete my

Convert [String: AnyObject] to [String: Any] [closed]

六月ゝ 毕业季﹏ 提交于 2020-01-02 22:11:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have a Swift variable of type [String: AnyObject] however the function i'm trying to invoke requires a [String: Any] (This would be a Dictionary fatal error: can't unsafeBitCast between types of different sizes Any thoughts on what I should do in a situation like this? Thanks! 回答1: This worked for me in a

iOS 8 data sharing between users

心不动则不痛 提交于 2020-01-02 14:31:52
问题 I'm new to iOS. I need to create a small app that allows registered users to share particular data between them and I'm looking for the best solution. I know I could create a server, which handle user authentication, pushing notifications and sharing data between them, but maybe there is a simpler and better way. I saw iOS 8 introduced CloudKit, but I haven't a chance to test it. Do you think it could meet my expectations? Thanks for help. 回答1: You could take a look into Parse or other same

iOS 8 data sharing between users

自古美人都是妖i 提交于 2020-01-02 14:31:10
问题 I'm new to iOS. I need to create a small app that allows registered users to share particular data between them and I'm looking for the best solution. I know I could create a server, which handle user authentication, pushing notifications and sharing data between them, but maybe there is a simpler and better way. I saw iOS 8 introduced CloudKit, but I haven't a chance to test it. Do you think it could meet my expectations? Thanks for help. 回答1: You could take a look into Parse or other same

iOS 8 video progress bar not visible

微笑、不失礼 提交于 2020-01-02 13:45:10
问题 I have an iOS app in which I am trying to show videos using MPMoviePlayerController . The code is very simple and working fine on all the devices with all iOS version greater than 6.0. But the problem is on iOS 8 and 8.1, the progress bar of the video is not visible as shown in below image. I dont understand why this is happening or is this iOS 8 bug. Please suggest. Thanks in advance. 回答1: I had this issue too in my app, which supports several iOS versions but this issue is indeed only

dyld error when trying to run an iOS 8 app on iPhone 5

淺唱寂寞╮ 提交于 2020-01-02 10:18:40
问题 Trying to run an app locally on a connected iPhone 5 with Xcode 6.0.1 (6A317). The app otherwise works on all other devices, but on the iPhone 5 I'm getting this error immediately after the app launches: dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because image not found I found this relevant Twitter post: https://twitter.com/steipete/status/473620531111919616, and have tried most of the suggestions there including: rebooted the Mac & the iPhone 5

How to lock device orientation in iOS 7 and iOS 8

谁说我不能喝 提交于 2020-01-02 07:19:09
问题 I have a problem with my app. I cannot lock the orientation of my app. All I need to do is to lock one view controller to landscape mode and the rest are portrait. This is hierarchy of my app. *Navigation Controller *TabBarController *ViewControllers 回答1: You only have to return NO from shouldAutorotate and the landscape orientation from supportedInterfaceOrientation in the one you want to be in landscape. On the other, return NO too from shouldAutorotate method and portrait orientations mask

iOS8: UIDocumentPickerViewController get NSData

邮差的信 提交于 2020-01-02 06:58:35
问题 I have implement UIDocumentPickerViewController according docs and now trying to get NSData from picked file in delegate method, but [[NSData alloc] initWithContentsOfURL:] returns nil: - (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url{ NSData* documentData = [[NSData alloc] initWithContentsOfURL:url]; //documentData is nil documentData = [[NSData alloc] initWithContentsOfFile:[url path]]; //documentData is still nil :( } I'm using Xcode6

For iOS healthkit how to save systolic and diastolic blood pressure values?

≯℡__Kan透↙ 提交于 2020-01-02 06:22:12
问题 Here is code for saving blood pressure data in health kit HKUnit *BPunit = [HKUnit millimeterOfMercuryUnit]; HKQuantity *BPSysQuantity = [HKQuantity quantityWithUnit:BPunit doubleValue:150.0]; HKQuantityType *BPSysType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierBloodPressureSystolic]; HKQuantitySample *BPSysSample = [HKQuantitySample quantitySampleWithType:BPSysType quantity:BpsysQuantity startDate:now endDate:now]; [self.healthStore saveObject:BPSysSample