0
我有這個簡單的代碼(授權後),它顯示對Facebook新聞提要的對話框。在facebook上更改textarea高度在ios上連接提要帖子對話框
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
message, @"message",
nil];
[facebook dialog:@"feed"
andParams:params
andDelegate:self];
對話框打開沒有問題,但textarea的高度是非常小的,大約2線,但低於是很大的空間,我已經預定義長文本發佈。
有沒有辦法改變textarea的高度?
感謝盧卡斯
---編輯---
我發現這樣做的 「髒」 的方式,通過改變FBDialog.m
- (void)webViewDidFinishLoad:(UIWebView *)webView {
[_spinner stopAnimating];
_spinner.hidden = YES;
[_webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByName('feedform_user_message')[0].rows = 8;"];
self.title = [_webView stringByEvaluatingJavaScriptFromString:@"document.title"];
[self updateWebOrientation];
}
,但它不是最好的解決辦法...任何更好的想法?