Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove arrow in UITableView

I am working on a UITableView. Please tell me how to remove the arrow button displayed in the each and every row?

like image 221
thndrkiss Avatar asked Apr 01 '10 09:04

thndrkiss


3 Answers

In your -tableView:cellForRowAtIndexPath:, set the accessoryType property of your UITableViewCell to UITableViewCellAccessoryNone, which is the default FYI.

like image 145
kennytm Avatar answered Nov 16 '22 05:11

kennytm


If you are using the interface builder just select your cell and set the accessory to none.

enter image description here

like image 22
Deekor Avatar answered Nov 16 '22 04:11

Deekor


//Write following code into your program


-(UITableViewCellAccessoryType)tableView:(UITableView *)tv accessoryTypeForRowWithIndexPath (NSIndexPath *)indexPath {

    return UITableViewCellAccessoryNone;
}

//Create a table for different section of app

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

 cell.accessoryType = UITableViewCellAccessoryNone;

}

// VKJ

like image 4
Vinod Joshi Avatar answered Nov 16 '22 05:11

Vinod Joshi