Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // save the info system button image to where you can access it
- UIButton *info = [UIButton buttonWithType:UIButtonTypeInfoLight];
- NSData *img = UIImagePNGRepresentation([info imageForState:UIControlStateNormal]);
- NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"info.png"];
- [img writeToFile:path atomically:NO];
- NSLog(@"%@", path);
Add Comment
Please, Sign In to add comment