Below is the code where I show a UIView from under a toolbar. It is displayed by clicking a button on toolbar. Now I want to add a button to the UIView that pops up , so as to cancel it. If possible a button over navigation bar which makes the UI better?
Can anyone point me towards a tutorial or so?
-(void)likeButton:(UIBarButtonItem *)button
{
CGRect frame = CGRectMake(0, 480, 320, 190);
frame.origin.y = CGRectGetMaxY(self.optionsToolBar.frame)-frame.size.height;
bottomView.frame = frame;
[self.optionsToolBar.superview insertSubview:bottomView
belowSubview:self.optionsToolBar];
}
1 Answer