I am not able to add actionSheet on start of the app.
In the code I am dynamically creating buttions and then adding it to view. Later I am adding view as Subview to window.
Where should I add my action sheet code....?? Also self.view is giving me error.
UIActionSheet *options = [[UIActionSheet alloc]
initWithTitle
"HomeBrewing Styles"
delegate:self
cancelButtonTitle
"I Can't Decide"
destructiveButtonTitle:nil
otherButtonTitles
"English", @"American", @"Imperial", nil];
[options setMessage
"Select a Style of IPA:"];
[options showInView:self.view]; // error is here...
[windows addSubView:myView];
][window makekeyAndVisible];
In the code I am dynamically creating buttions and then adding it to view. Later I am adding view as Subview to window.
Where should I add my action sheet code....?? Also self.view is giving me error.
UIActionSheet *options = [[UIActionSheet alloc]
initWithTitle
delegate:self
cancelButtonTitle
destructiveButtonTitle:nil
otherButtonTitles
[options setMessage
[options showInView:self.view]; // error is here...
[windows addSubView:myView];
][window makekeyAndVisible];