初回に表示するチュートリアル画面の作成を支援するライブラリ。
作り方は簡単。必要な画面分だけMyIntroductionPanelのインスタンスを作る。その時に画像とメッセージを指定しておく。
MYIntroductionPanel *panel = [[MYIntroductionPanel alloc] initWithimage:[UIImage imageNamed:@"SampleImage1"] description:@"asd asd a sdfffdasfas fasd fasdf sd fsdfdsfasd asdfdfsdfa asd fdsffdsfa asdf asdffds asd adfsdfdfasf df"]; MYIntroductionPanel *panel2 = [[MYIntroductionPanel alloc] initWithimage:[UIImage imageNamed:@"SampleImage2"] description:@"asd asd a sdfffdasfas fasd fasdf sd fsdfdsfasd asdfdfsdfa asd fdsffdsfa asdf asdffds asd adfsdfd fasf df aljdsfljasdlkfj laksjdfl sljd flajsdjjd sfkjd kkdfkj dkjfj asd asdfasdf asd s s asasdff dsdafdfa asdfss sddds a s ddsafdasdf asd sd as sdadsad asdsds a sdfssfd"];そして MyIntroductionViewを作り、表示するだけ。
MYIntroductionView *introductionView = [[MYIntroductionView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) headerImage:[UIImage imageNamed:@"SampleHeaderImage.png"] panels:@[panel, panel2]]; [introductionView showInView:self.view];
サンプル
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJw71NYkn3ouFLPCKdXDQTuKQDD_a4jc0luKt34qvpLYvgLYnJUG6-rhDYrCZqHnIl7AXTsKWMe1MWM2Yk5h0G9idVoPqgD9Nv8CgxwA_YKIuIVCq8BQnsqdiGGadXACFwrFs-ibnbhpAx/s320/130318-0003.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdRcoSAzEmSyBfaYTyZdIF63zYXGNFuF3_Vl3mUI3KTTv-jMyx_eouiBGhjnDApM5RunbBAUieMNhX9rwPmmVuDJ2B-FkU2oyRU3UXwiXOh3HXLD40rBBnG77P3acOG9Yt9B2Zk_haPILb/s320/130318-0004.jpg)
作る手間が省けて地味に便利。