ios - ios8中uialertview中的复选框
<p><p>我想像下图一样添加复选框</p>
<p> <img src="/image/e9jBO.png" alt="Expected behaviour"/> </p>
<p>下面是我的代码:</p>
<pre><code>UIButton *nameField = [ initWithFrame:CGRectMake(120, 0, 30, 30.0)];
UIView *v = [ initWithFrame:CGRectMake(0, 0, 250, 50)];
];
forState:UIControlStateNormal];
;
UIAlertView *av = [ initWithTitle:@"Delete selected pods from server?" message:
@"" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
;
av.message = @"This will delete all the posts related to the pictures you want to delete!";
;
</code></pre>
<p>使用上面的代码,我得到:</p>
<p> <img src="/image/lIGSO.png" alt="enter image description here"/> </p>
<p>我想得到消息旁边的复选框..</p>
<p>任何帮助或建议如何进行?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您可以使用 <a href="https://github.com/wimagguc/ios-custom-alertview" rel="noreferrer noopener nofollow">https://github.com/wimagguc/ios-custom-alertview</a>
创建您的自定义内容 View 并将其设置为 </p>
<pre><code>CustomIOS7AlertView *alertView = [ init];
UIView *customView ..;//Your custom view
;
</code></pre></p>
<p style="font-size: 20px;">关于ios - ios8中uialertview中的复选框,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/28826529/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/28826529/
</a>
</p>
页:
[1]