私はpresentModalViewController経由でそこにビューを持つアプリを作った。ios5 presentmodalviewcontroller複数のビュー
最初のビューは、2番目のビューは、3番目のビューは私の質問は、ということですthirdview.m
- (IBAction)backtomain:(id)sender {
[self dismissModalViewControllerAnimated:YES];}
ある
#import "thirdview.h"
- (IBAction)dismiss:(id)sender {
[self dismissModalViewControllerAnimated:YES];}
-(IBAction)gohead:(id)sender{
thirdview *third = [[thirdview alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:third animated:YES];}
secondview.mあるViewController.m
#import "secondview.h"
- (IBAction)pushme:(id)sender {
secondview *second = [[secondview alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:second animated:YES];}
です私が3番目のビューでボタン(backtomain)をクリックすると、2番目のビューではなく最初のビューに戻りたい。だから私はbacktomain機能を整理することができますか?
ありがとう〜
こんにちは、私は初心者ですので、私はあなたのコードをよく理解できません、ここに私ですファイル:http://www.tempfiles.net/download/201203/232758/delay-actions.html、それを確認できますか? –