views:

32

answers:

2

Hi,

In my app I have four fields and each of them is list of values.

Now if i use a UIPickerView with 4 components then the whole View becomes too congested and ugly for the user's liking.

Is there any better and cleaner way to display these list of values?

Please Help & Suggest.

Thanks!!

A: 

You can use a customized uitableview to achieve this...

By having 4 labels which displays the respective values. Also you can change the height of the cell to make it look better.

Hope this helps you...

Atulkumar V. Jain
i m having 100 values in each component and there are 4 such components then using tableview will be helpful? If yes do please provide some more information as i am a newbie.
PARTH
You will have to create a NSMutableArray containing NSDictionary with 4 objects and keys. then you can use the count of the array to get the no of rows in the tableview and in the cellForRowAtIndexPath you can display the value from the array according to your requirements.
Atulkumar V. Jain
Sorry but I am not getting a clear idea of what kind of implementation you are suggesting. Please give a rough pictorial view. Even a rough screenshot will help. Thanks!!
PARTH
+2  A: 

For small number of choices I recommend using segmented controls. But in your case, a navigation controller (with its associated tableview for components and possible values) seems to be the best way forward. Have a look at the Settings app on your device.

Paul Ardeleanu
I think this is best way ... UITableView
karim