星空网 > 软件开发 > 操作系统

【代码笔记】点击出现选择框

一,效果图。

【代码笔记】点击出现选择框images/loading.gif' data-original="http://images2015.cnblogs.com/blog/337518/201510/337518-20151014173033257-1298423758.jpg" width="218" height="400" />

二,工程图。

【代码笔记】点击出现选择框

三,代码。

RootViewController.h

#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UIActionSheetDelegate>@end

 

RootViewController.m

【代码笔记】点击出现选择框
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];  if (self) {    // Custom initialization  }  return self;}- (void)viewDidLoad{  [super viewDidLoad];  // Do any additional setup after loading the view.}//点击任何处,出现选择框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{  UIActionSheet *actionsheet=[[UIActionSheet alloc]initWithTitle:@"Choose Source" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Photo album",@"Default photo", nil];  [actionsheet showInView:self.view];}- (void)didReceiveMemoryWarning{  [super didReceiveMemoryWarning];  // Dispose of any resources that can be recreated.}
【代码笔记】点击出现选择框

 




原标题:【代码笔记】点击出现选择框

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

行政许可:https://www.goluckyvip.com/tag/1006.html
Shopify收款:https://www.goluckyvip.com/tag/10060.html
福清国际快递:https://www.goluckyvip.com/tag/100600.html
国际物流加拿大专线:https://www.goluckyvip.com/tag/100601.html
加拿大国际物流专线:https://www.goluckyvip.com/tag/100602.html
国际快递物流:https://www.goluckyvip.com/tag/100603.html
夹江千佛岩景区门票(夹江千佛岩景区门票价格):https://www.vstour.cn/a/411232.html
武陵山大裂谷周围景点 武陵山大裂谷周围景点图片:https://www.vstour.cn/a/411233.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流