Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

customizing the UITableView

User Post

6:03 pm
August 7, 2008


gfxblit

Noob

posts 2

1

I went through the tutorial on transitioning between views and it works beautifully! (Thanks Brandon!)

Now I'd like to customize the UITableView a bit. In particular, I don't like the horizontal lines you see in the UITableView. How might I remove these? Also, is there a way to add the little '>' arrows on the right-hand side of each cell?

I see these '>' arrows in this image:

from this tutorial:

but I can't find the code in their sample that adds this '>' arrow. Also, the horizontal lines are still there. :)


Any help would be appreciated! Thanks.


-Bill

10:48 pm
August 7, 2008


Uhu

iCoder

posts 17

2

did you check the documentation for the UITableView properties?

There are properties like separatorStyle (althouth I think this is for another case). Maybe there is one suiting for your case.

Kind regards. Nico

12:05 am
August 8, 2008


bartdt

iCoder

bartdt

posts 6

3

You'll want to be looking for the following line:

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; when the cells are build up (cellForRowAtIndexPath method).


B


“What we do in life, echoes in eternity !”

11:25 pm
August 8, 2008


gfxblit

Noob

posts 2

4

Thanks! Adjusting the cell.accessoryType gave me the 'chevron'. Also, I could turn off the horizontal lines through the Interface Builder, under the Table View Attributes.

12:25 am
August 9, 2008


Uhu

iCoder

posts 17

5

good to know. I will note that down. I kinf of miss some of the features that frameworks like Visual Studio provide. eg. the UIPickerView which is comparable to the dropdown menus in windows programs. The default values can be easily entered in VisualStudio in a GUI.

Cocoa doesnt offer that. tbh I do not yet know how to fill an UIPicker with values

Kind regards. Nico

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

6 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.