UIImage* img = [UIImage kitImageNamed:@"UIButtonBarLocate.png"];
// Get the location of the Documents directory
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) ;
NSString *imagePath = [paths objectAtIndex:0] ;
NSString *filename = @"test.png" ;
NSString *filepath = [NSString stringWithFormat:@"%@/%@", imagePath, filename] ;
// Save the image
NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation(img)];
[imageData writeToFile:filepath atomically:YES];
użytku ta próbka kodu, aby zapisać go jako plik, którego będziesz mógł użyć w swoim projekcie!
Mam nadzieję, że ta pomoc.
Pasek narzędzi lub pasek kart? Ten w Maps.app to pasek narzędzi. – kennytm