Because of ARC the color is released too early in the end of the method.
i use: CGColorRetain
CGColorRef whiteColor = CGColorRetain([UIColor colorWithRed:1.0 green:1.0
blue:1.0 alpha:1.0].CGColor);
More Related Contents:
- convert UIImage to NSData
- Is it possible to detect that your iOS app is running on an iPad mini at runtime?
- How to get device make and model on iOS?
- How to hide UINavigationBar 1px bottom line
- UIRefreshControl without UITableViewController
- File write with [NSBundle mainBundle] fails
- In a storyboard, how do I make a custom cell for use with multiple controllers?
- Collapse sequences of white space into a single character and trim string
- CoreData relationship fault?
- How can I create a zip file by using Objective C?
- Why shouldn’t I use the getter to release a property in objective-c?
- iOS devices as web server [closed]
- Does ARC work with Core Graphics objects?
- Prompt login alert with Twitter framework in iOS5?
- NSURLConnection sendAsynchronousRequest:queue:completionHandler: making multiple requests in a row?
- Getting ARP table on iPhone/iPad
- How do you determine spacing between cells in UICollectionView flowLayout
- Non-lazy image loading in iOS
- How to use reachability class to detect valid internet connection?
- AVAudioPlayer stops playing immediately with ARC
- Ask permission to access Camera Roll
- Detect screen on/off from iOS service
- How to identify previous view controller in navigation stack
- iPhone – Differences among time zone convenience methods
- Asynchronous NSURLConnection with NSOperation
- Application windows are expected to have a root view controller at the end of application launch warning
- Weird error message in Xcode 4.3 with LLDB
- UICollectionView current visible cell index
- Command /Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
- How to animate application icon in iOS?