I am wondering how I can add an image to the app that overlays the whole screen with information about the app itself.
This are the requirements:
Example (Only found one on iPad, although I need it for the iPhone):
How can I do this? Are there any free frameworks I can use? Any hints, information or links are much appreciated.
.
- (void)viewDidLoad {
[super viewDidLoad];
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"didDisplayHelpScreen"]) {
UIWindow *window = [[[UIApplication sharedApplication] windows] lastObject];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:window.bounds];
imageView.image = [UIImage imageNamed:@"78-stopwatch"];
imageView.backgroundColor = [UIColor greenColor];
imageView.alpha = 0.5;
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissHelpView:)];
[imageView addGestureRecognizer:tapGesture];
imageView.userInteractionEnabled = YES;
[window addSubview:imageView];
}
}
- (void)dismissHelpView:(UITapGestureRecognizer *)sender {
UIView *helpImageView = sender.view;
[helpImageView removeFromSuperview];
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"didDisplayHelpScreen"];
}