Wednesday, 27 February 2013

UIComboBox For iPhone.

I have made custom file by using which you can use UICombo box in ios code.Let the code begins.



Using Code:-

To use these files,you need to create instance of UICombo Class and pass items and textColor as parameter as given below:

NSArray *itemArray=[[NSArray alloc] initWithObjects:@"BMW",@"Ferrari",@"Swift Desire",nil];

UICombo  *combo=[[UICombo alloc] initWithFrame:CGRectMake(10, 30, 200, 30) andItems:itemArray andColor:CBBrown];

and At Last add it as subview to your view on which you want to display it.

[self.view addSubview:combo];

These combo includes methods to addItem , InsertItemAtIndex,removeItem,removeItemAtIndex,
refresh combo etc.

Note:- Include QuartzCore framework.

You can have a sample code IOSCombo

No comments:

Post a Comment