0 Replies - 2667 Views - Last Post: 07 October 2012 - 03:56 PM

#1 justin78  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 5
  • Joined: 07-October 12

create action sheet when click on button in Objective-C iPad

Posted 07 October 2012 - 03:56 PM

I have one button when you click on button I want to have have one action sheet in bottum of page


my button in first page:




my actionsheet :



I create actionsheet for my button with this code but I want to have it like the above picture gray part,
rightnow my actionsheet goes somewhere in a midddle of page :


here is my code

- (IBAction)openAction:(id)sender {
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Hello"
delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"test" otherButtonTitles:@"tesaat", nil];
[actionSheet showInView:self.view];
}

and I want to have it empty not with the button,

Would you please helping me!
Thanks in Advance!

Attached image(s)

  • Attached Image
  • Attached Image


Is This A Good Question/Topic? 0
  • +

Page 1 of 1