storyboard設置IBOutlet和IBAction

前面說過,storyboard隱式地生成了很多代碼 比如不用storyboard時,要生成一個WebView的控件,需要寫: - (void)viewDidLoad { [super viewDidLoad]; self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
相關文章
相關標籤/搜索