0
您好我有我做了一個問題,基於蘋果的示例應用程序的應用程序調用photoscroller,我想添加一個登錄screen.but當我向上添加它的顯示視圖招10-15個像素,主窗口在底下可見。我問爲什麼?問題,改變視圖
零件的我的代碼:
在視圖做負載:
InfoViewController *infoView = [[InfoViewController alloc] initWithNibName:nil bundle:nil];
self.view = infoView.view;
[infoView release];
後來驗證登錄後:
CGRect pagingScrollViewFrame = [self frameForPagingScrollView];
pagingScrollView = [[UIScrollView alloc] initWithFrame:pagingScrollViewFrame];
pagingScrollView.pagingEnabled = YES;
pagingScrollView.backgroundColor = [UIColor blackColor];
pagingScrollView.showsVerticalScrollIndicator = NO;
pagingScrollView.showsHorizontalScrollIndicator = NO;
pagingScrollView.contentSize = [self contentSizeForPagingScrollView];
pagingScrollView.delegate = self;
self.view = pagingScrollView;
...
我不知道爲什麼被向上推,當我添加其他觀點。
感謝每一個答案
我解決這個問題,但我仍然等待答案爲什麼是後援SOLV是這一行:infoView.view.frame = [自我frameForPagingScrollView] – Csabi 2011-03-29 08:08:44