I should add a UIView to an application, I use:
UIWindow *window = [[UIApplication sharedApplication] keyWindow];
[window addSubview:view];
But it only work on SpringBoard. Have anyone an idea?
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.
There is nothing wrong with your code and it will work. If it doesn’t,
viewmight benilor the view’sframemight not be set correctly.Normally, you would use a view controller and, rather than adding views directly to the window, you would add them to the view controller’s view.