0
沒有鍵盤
我推出MFMailComposeViewController像這樣:沒有什麼是編輯,而且MFMailComposeViewController
ShareViewController *shareView = [[ShareViewController alloc] initWithSubject:subject body:body footer:footer];
shareView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
shareView.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:shareView animated:YES];
初始化看起來這樣的:
- (id)initWithSubject:(NSString *)subject body:(NSString *)body footer:(NSString *)footer{
[super init];
self.navigationBar.barStyle = UIBarStyleBlack;
self.mailComposeDelegate = self;
[self setSubject:subject];
body = [NSString stringWithFormat:@"%@ %@", body, footer];
[self setMessageBody:body isHTML:YES];
return self;
}
顯示電子郵件窗口,我可以移動光標圍繞電子郵件的正文。但是我無法調出鍵盤,或者將光標移動到To:,CC:或Subject:字段。不知道發生了什麼事。這在以前工作,但我最近做了幾個用戶界面的變化。 「取消」按預期解除了模式。由於「收件人:」字段中沒有收件人,因此「發送」未啓用。
任何想法?
ShareViewController是MFMailComposeViewController的子類嗎?如果是這樣,我通常會遠離那個;組合控制器是一個黑盒子的系統用戶界面,並沒有被設計成子類別 - 雖然這可能會起作用,但我會先按照原樣使用組合控制器,並在呼叫站點設置所有這些屬性初始化後。 – 2010-04-14 02:47:26