[Code notes] Click the option box that appears, and click "Code notes"
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UIActionSheetDelegate>@end
RootViewController. m
# Import "RootViewController. h "@ interface RootViewController () @ end @ implementation RootViewController-(id) initWithNibName :( NSString *) bundle :( NSBundle *) handle {self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; if (self) {// Custom initialization} return self;}-(void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view .} // click anywhere and the selection box (void) touchesBegan :( NSSet *) touches withEvent :( UIEvent *) event {UIActionSheet * actionsheet = [[UIActionSheet alloc] initWithTitle: @ "Choose Source" delegate: self cancelButtonTitle: @ "Cancel" destructiveButtonTitle: nil handle: @ "Photo album", @ "Default photo", nil]; [actionsheet showInView: self. view];}-(void) didreceivemorywarning {[super didreceivemorywarning]; // Dispose of any resources that can be recreated .}