1
我試着用下面的代碼到TTThumbsViewController添加到視圖控制器添加TTThumbsViewController到的ViewController
#import <Three20/Three20.h>
@interface PhotoTestController : TTThumbsViewController {
}
@end
@implementation PhotoTestController
- (void)viewDidLoad {
}
@end
//---------------------------------------------------------------
//in my ViewController.m
- (void)viewDidLoad
{
PhotoTestController *vPhotoTestController=[[PhotoTest2Controller alloc] init ];
[vPhotoTest2Controller setDelegate:self];
[self.view addSubview:vPhotoTestController.view ];
}
上的ViewController的看法,對於TTThumbsViewController/PhotoTestController顯示沒有用戶界面,只顯示一個全屏幕白色的窗戶, 我不知道什麼是錯的?
歡迎任何評論
感謝
您是否嘗試過設置控制器視圖的框架? – 2011-03-23 10:09:12