ios - 如何减小 UIAlertView 中按钮的字体大小,有什么办法吗?
<p><p>我正在使用 UIalertView,</p>
<pre><code>UIAlertView *alert = [ initWithTitle:appname
message:@"some blah blah!"
delegate:nil
cancelButtonTitle:@"Ok"
otherButtonTitles:@"Free content", nil];
;
</code></pre>
<p>我想在弹出警报 View 时减小“免费内容”的字体大小(类似于 arial-9)字体,有没有办法减小字体或以自定义方式设计?</p>
<p>谢谢,</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><blockquote>
<p>You cannot customize the appearance of UIAlertView,</p>
</blockquote>
<p>因为此类的 View 层次结构是<strong>私有(private)的</strong>,并且必须<strong>不得修改</strong>。</p>
<p>更多信息请参见 UIAlertView 类引用:<a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html" rel="noreferrer noopener nofollow">UIAlertView Class Reference:</a> </p>
<p>为什么不呢?</p>
<blockquote>
<p>you can use Custom AlertView with desire apperance</p>
</blockquote>
<p>查看下面的链接如何创建具有所需外观的自定义警报 View<a href="http://iosdevtricks.blogspot.in/2013/04/creating-custom-alert-view-for-iphone.html" rel="noreferrer noopener nofollow">CustomAlertView Sample</a> </p></p>
<p style="font-size: 20px;">关于ios - 如何减小 UIAlertView 中按钮的字体大小,有什么办法吗?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/28581778/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/28581778/
</a>
</p>
页:
[1]