i have to select one category from drop down menu when i press a field ....without using picker view...
A:
you would have to roll one of your own. What I did in this case is moved a picker view off screen and then when they hit the button it animates the movement of the picker view onto the screen. It then goes off when they pick.
Codezy
2010-07-27 22:37:51
+1
A:
You can try to use a UIActionSheet like this:
UIActionSheet *action = [[UIActionSheet alloc] initWithTitle:@"A title here" delegate:self
cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Dismiss"
otherButtonTitles:@"One option", @"Another option", nil];
[action showInView:self.view];
then implement the delegate methods like this one :
// Called when a button is clicked. The view will be automatically dismissed after this call returns
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
switch (buttonIndex) {
case x:
//Chose option x
break;
...
default:
//Default action
break;
}
}
iPhoneDevProf
2010-07-28 00:07:35