【代码笔记】iOS-仿安卓,本页出现多个选择项

一,效果图。

二,代码。

复制代码
//点击任何处,弹出提示选项
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    
    UIAlertView * alert=[[UIAlertView alloc] initWithTitle:@"推荐给好友" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:@"Gmail",@"UC浏览器(乐园)",@"蓝牙",@"信息", nil];
    [alert show];

}
复制代码

 

原文地址:https://www.cnblogs.com/yang-guang-girl/p/5126237.html