iOS & Object-c Programming
The difference between viewDidUnload and dealloc
Sorry, this entry is only available in ä¸æ.read more
There are many ways to store data in an iOS app. Core Data, SQLite and UIDocuments are all available but often the quick and easy way to store some data is to use NSUserDefaults. Sometimes we need to clear all of NSUserDefaults data in your app. And there are two ways to clear it. 1.Delete […]read more
UIImage with rounded corners
In this post I will show a good way to resize UIImage, add shadow, corner radius and still have smooth movement of the image. [css] UIImage *image = [UIImage imageNamed:@”image.png”]; // Begin a new image that will be the new image with the rounded corners // (here with the size of an UIImageView) UIGraphicsBeginImageContextWithOptions(image.size, NO, […]read more
You must be logged in to post a comment.