ICTutorialOverlay : A utility for making "Overlay Tutorial"
- 9. // Overlayの生成
ICTutorialOverlay *overlay = [[ICTutorialOverlay alloc] init];
overlay.hideWhenTapped = NO;
overlay.animated = YES;
// 穴あけるよ!!
[overlay addHoleWithView:self.roundRectButton
padding:8.0f
offset:CGSizeMake(1.0f, 1.0f)
form:ICTutorialOverlayHoleFormRoundedRectangle
transparentEvent:YES];
// ついでに気の利いたラベルでものっけておく
UILabel *label =
[[UILabel alloc] initWithFrame:CGRectMake(100, 170, 220, 150)]; label.backgroundColor
= [UIColor clearColor];
label.textColor = [UIColor whiteColor];
label.numberOfLines = 0;
label.text = @"You can place any views on the overlay”;
[overlay addSubview:label];
// 表示
[overlay show];