Can’t endBackgroundTask: no background task exists with identifier, or it may have already been ended

I lose many days looking for the piece of code or framework that was causing this warning in the debug console Can’t end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. Finally I’ve created an empty project Single View App. Only code … Read more

Cannot find executable for CFBundle CertUIFramework.axbundle

Final Edit- Temporary workaround: click iOS Simulator > Reset Content and Settings… and run again. This error message may reappear at random. For me, it happens when I launch a different application. There are several threads in Apple dev forums and in StackOverflow about this problem, but none have a definitive answer. This seems to … Read more

Access Asset Catalog pathForResource

Same problem, but I don’t think we could access it via pathForResource:, except below: UIImage* image = [UIImage imageNamed:@”name-in-asset-catalog”]; It has been clearly documented: Each set in an asset catalog has a name. You can use that name to programmatically load any individual image contained in the set. To load an image, call the UIImage:imageNamed: … Read more

iOS 7 custom back button

This is not a bug, this how Back button looks in iOS 7. For example: You should probably use the new concept for your application, and not to set background image for back button in iOS 7. If you still want you back button have the same as it looked in iOS6 than you should … Read more

Xcode duplicate line

Go to this folder which contains dark side of the force: Xcode 4.2 or prior: /Developer/Library/PrivateFrameworks/IDEKit.framework/Resources Xcode 4.3 or later: /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources. Open IDETextKeyBindingSet.plist. Add a new dictionary and a new command item as the screenshot below (name them what you want): That’s: selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward: Restart Xcode and go to Preferences – … Read more

iOS 7 status bar overlapping UI

You can resolve this issue if you are using storyboards, as in this question: iOS 7 – Status bar overlaps the view If you’re not using storyboard, then you can use this code in your AppDelegate.m in did finishlaunching: if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { [application setStatusBarStyle:UIStatusBarStyleLightContent]; self.window.clipsToBounds =YES; self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20); } … Read more

tech