ios8

sessionWithConfiguration freezing iOS 8 iPhone 4S on new Xcode 6.0.1

蓝咒 提交于 2019-12-07 07:44:25
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.timeoutIntervalForRequest = 30.0; configuration.timeoutIntervalForResource = 60.0; configuration

How can I fix “fatal error: can't index empty buffer”

放肆的年华 提交于 2019-12-07 07:27:20
问题 I try to develop a custom autocompletion for a textfield. The code works but if I delete all my input, the debugger says: "fatal error: can't index empty buffer" in the line where is written: if createdArrayInDependencyOfInput[indexOfArray] == textFieldText && indexOfArray >= 0 && currentCountOfInput >= 1 Here is the whole code: @IBOutlet weak var MyTextField: UITextField! @IBOutlet weak var MyPlaceholderTextField: UITextField! var arrayOfSubjects: [String] = ["Informatik", "Italienisch",

Moving a modally presented UIViewController up when keyboard appears on iPad with iOS8

旧时模样 提交于 2019-12-07 06:54:00
问题 I've got a UIViewController inside of a UINavigationController, presented modally on an iPad with iOS8. I'm using self.myNavController.modalPresentationStyle = UIModalPresentationFormSheet; Within my view controller, I have a text field. Because of the UI design of the view controller, when the user taps in the text field, and the keyboard appears, I need to move the view controller up on the screen. On iOS7, I had been animating a change to self.myNavController.view.superview.frame.origin in

Unarchive UIImage object returns CGSizeZero image using NSKeyedUnarchiver on iOS 8

邮差的信 提交于 2019-12-07 06:44:51
问题 I have this code working on iOS 7: NSData *imageData = [NSKeyedArchiver archivedDataWithRootObject:self.imageView.image]; UIImage *imageCopy = [NSKeyedUnarchiver unarchiveObjectWithData:imageData]; NSLog(@"%@",NSStringFromCGSize(imageCopy.size)); but on iOS 8, imageCopy 's size is always zero. Same thing happens when I archive UIImageView , the unarchived imageView's image has a zero size. I found out that in iOS 7, UIImage header is like: UIImage : NSObject <NSSecureCoding, NSCoding> but on

Error creating LLDB target at path, Xcode 6 GM seed

陌路散爱 提交于 2019-12-07 06:27:04
问题 I'm getting this error whenever I build in Xcode 6 GM Seed. It seems to be making my app insanely slow. What exactly does this mean and how do I fix it? I had the following error: Warning: Error creating LLDB target at path '.....'- using an empty LLDB target which can cause slow memory reads from remote devices. PS : im not able to run my app, its stuck on the splash screen 回答1: There is a thread in the Apple Developer Forum, https://devforums.apple.com/message/1010068#1010068 that describes

ios 8 nested auto sized tables

試著忘記壹切 提交于 2019-12-07 06:09:14
问题 I'm pretty new to Auto Layout, so this may be an easy question to answer. I have two UIViewControllers which both contain UITableViews that need to auto-size their cells. I'm trying to use Auto Layout and the new iOS 8 auto-sizing table cells. There is a parent/child relationship between these tables: the parent table view will display the child's table view in its cells. The child's table view seems to auto-size just fine (the cells at least). The problem is that the parent cell seems unable

Xcode crash Logs not appearing

左心房为你撑大大i 提交于 2019-12-07 05:15:12
问题 I have an iOS app that is only crashing with the client on iOS8.0 At first I tried to install iOS simulator8.0 on my xcode7.0, OS X El Capitan to test the code but, facing some issues, I dropped the case Now, what I am trying to do is get the crash log from xcode's organizer, but weird things are happening: I am logged in xcode with my iTunes account The app had the checkbox on for "Include app symbols for your application…" when uploading it to testflight, BUT the build details in iTunes

iOS UITableViewAutomaticDimension RowHeight Poor Performance / Jumping

旧时模样 提交于 2019-12-07 04:59:13
问题 I'm building a basic table view on iOS 8. I watched the WWDC '14 video on the topic of autosizing cells and am trying to reproduce the concept, but am having some issues. On viewDidLoad: I am calling: //estimate for my cells though they may vary self.tableView.estimatedRowHeight = 300.0; self.tableView.rowHeight = UITableViewAutomaticDimension; When my view and table load up, performance is ok. When I click on a cell, the program takes me to a detail view. When I hit the back button on that

Enable iphone 6 resolution not enabling iphone 6 plus

不羁岁月 提交于 2019-12-07 04:24:55
问题 I am trying to support iPhone 6 resolution without supporting iphone 6 plus yet. What I tried already is to add launch image for iphone 6 - Image.xcassets called Retina HD 4.7. Unfortunatelly simulator for 6 plus is reporting 2208x1242 screen size (already multiplied by 3). So 6 plus is supported with just 6 launch image. I am wondering if its just a simulator bug or the same behavior is on actual iphone 6 plus device - I do not have access to such device yet. Funny thing: when I added just

What is WKErrorDomain error 4 from WKWebView

点点圈 提交于 2019-12-07 03:44:38
问题 fatal error: LPWebView encounters an error: Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo=0x79d9c700 {NSLocalizedDescription=A JavaScript exception occurred} I encountered this error when I tried to evaluate a JavaScript function with WKWebView. I used loadHTMLString to load a template to the webview. let bundle = NSBundle.mainBundle() if let editorURL = bundle.URLForResource(self.kTemplateName, withExtension: "html") { var error : NSError? //get html string