そのため、initWithNibNameメソッドによって別のViewControllerに向かうIBActionを持つボタンがあります。すべてがNavigationControllerに埋め込まれています。
このViewControllerの.xibも作成しました。簡単なスクリーンショットを次に示します。
これが私のコードです:
.h
@interface ModeEmploiController : UIViewController
{
IBOutlet UIScrollView *scrollView;
UITextView *vueOffres, *vueInfos, *vueGrilles;
}
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
.m
@implementation ModeEmploiController
@synthesize scrollView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
[scrollView setScrollEnabled:YES];
[scrollView setContentSize:CGSizeMake(320, 529)];
// Here I define vueOffres, vueInfos and vueGrilles and for each of them :
[self.view addSubview:vueGrilles/vueInfos/vueOffres];
}
}
しかし、アプリを実行すると、スクロールが有効にならず、ナビゲーションコントローラーのナビゲーションバーがありません。何が起こっていますか?