How to use default iOS images?

Now starting from Swift 5.1 and Xcode 11 you can load 1 from over 1500 system images with the new UIImage Api UIImage(systemName: “imageName”) which are vector based so no worries about qualities for different sizes https://developer.apple.com/design/resources/

Cannot set text color of Send and Cancel buttons in the mail composer when presented from the UIActivityViewController in iOS7

Managed to change the text color of the Send and Cancel buttons, which are on the UINavigationBar in the MFMailComposerViewController (both Send and Cancel) and MFMessageComposeViewController (only Cancel), when presented from UIActivityViewController. Using an UIActivityViewController, tap on Messageor Mail: You’ll notice that the default text color of the Send and Cancel buttons is blue: In … 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

CocoaPods arm64 issue

Select the Pods project Change Build Active Architecture Only from Yes to No. That worked for me. Note: CocoaPods Troubleshooting Guide recommends matching the Debug setting in your Xcode project, rather than changing the Pod’s Build Active Architecture Only. As long as they match it seems to fix the problem.

Is there a way since (iOS 7’s release) to get the UDID without using iTunes on a PC/Mac?

Navigate to http://get.udid.io/ from Safari on your iOS device. It works like a charm and requires neither iTunes nor any other computer. No app installed either. EDIT: Also, have a look at Getting a device UDID from .mobileconfig if you (understandably) would rather have this .mobileconfig certificate hosted on a server of yours. MAKE YOUR … Read more

UIImagePickerController breaks status bar appearance

None of the solutions above worked for me, but by combining Rich86man’s and iOS_DEV_09’s answers I’ve got a consistently working solution: UIImagePickerController* imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; and – (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { [[UIApplication sharedApplication] setStatusBarHidden:YES]; } Regarding this awesome solution. For 2014 / iOS8 I found in some cases … Read more