I am creating a UIToolbar
programmatically but the issue is the position of this tool bar is up (navigation bar position). how can I put it automatically on the bottom?
Here is my code:
CGRect rect2 = CGRectMake(0, toolBar.frame.origin.y , self.view.frame.size.width , 0);
toolBar = [[UIToolbar alloc]initWithFrame:rect2];
toolBar.barStyle = UIBarStyleBlackTranslucent;
[toolBar sizeToFit];
[self.view addSubview:toolBar];
[toolBar release];
because my application is universal and my view controller class does not have any nib file I need to define it for both iPad and iPhone, and I don't want use UIUserInterfaceIdiomPad
.
UIUserInterfaceIdiomPad
– Coauthor