更新时间:2022-06-12 22:52:09
CGRect f = self.myTextView.frame;
f.size.height += 1;
[self.myTextView setFrame:f];
因为我的 UITextView
已经在 XIB
文件中,所以我只是将现有高度修改了 1px 和 viola.正如@larsacus 指出的那样,只有当模块的宽度超过 512px 时才需要这样做.
Because my UITextView
is already in a XIB
file I just modify the existing height by 1px and viola. As @larsacus pointed out, this is only necessary when the module's width is over 512px.