神秘三函数
来源:互联网 发布:java cxf教程 编辑:程序博客网 时间:2024/04/30 05:34
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ // Return YES for supported orientations if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } else { return YES; }}- (BOOL)textViewShouldBeginEditing:(UITextView*)textView {[textView becomeFirstResponder];return YES;}- (BOOL)textViewShouldEndEditing:(UITextView*)textView {[textView resignFirstResponder];return YES;}