課程
/移動開發
/iOS
/征戰Objective-C
2016-12-27
源自:征戰Objective-C 1-1
正在回答
在.m文件viewDidLoad方法體外寫一個觸發事件方法:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self.view endEditing:YES];
}
舉報
本課程作為零基礎學習Objective-c教程,IOS開發可以從這里開始
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-12-27
在.m文件viewDidLoad方法體外寫一個觸發事件方法:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self.view endEditing:YES];
}