How can I add a custom image (or hex color) to main.m that will be used in the whole application and all it’s views?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t set it up in the main.m. Use your AppDelegate for that. A solution could look like this:
YourAppDelegate.h
YourAppDelegate.m
Then grab that ivar from within your UIViewController and add it as a subview in the viewDidLoad method.