Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding view into action sheet

Can I add my custom UIViewController into the ActionSheet ?

thanks

like image 202
Maulik Avatar asked Jun 26 '26 17:06

Maulik


1 Answers

finally I've find it... I've added a view which is subclass of UIViewController into the UIActionSheet. I've created a view in separate file (using xib) .

UIActionSheet *asheet = [[UIActionSheet alloc] init];
[asheet showInView:self.view]; 
[asheet setFrame:CGRectMake(0, 230, 320, 230)];


CustomView *innerView = [[CustomView alloc] initWithNibName:@"CustomView" bundle:nil];
innerView.view.frame = CGRectMake(0, 10, 320, 210);
[asheet addSubview:innerView.view];
//[asheet addSubview:innerView];

[innerView release];
[asheet release];
like image 108
Maulik Avatar answered Jun 29 '26 05:06

Maulik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!