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

来源:互联网 发布:新手淘宝开店卖什么好 编辑:程序博客网 时间:2024/06/03 14:20

一,效果图。

二,代码。

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

 

0 0