\" for all cell but i want it should not seen on 1st cell because it is head line for table" />
开发者

custom uitableview cell?

开发者 https://www.devze.com 2023-02-09 19:25 出处:网络
i am using following : cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; so it shows \">\" for all cell but i want it should not seen on 1st cell because it is head line for table

i am using following : cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

so it shows ">" for all cell but i want it should not seen on 1st cell because it is head line for table

now its look like cell 1 ---Status 000>

2 ---Detail1000>

3 ---Detail200 >

but I need cell 1 ---Status 000>

2 ---Detail1000>

3 ---Detail200 >

0-as spaces in short i dont need ">" on 1st cel开发者_JAVA百科l in my table view as it dont have any detail view

thank you in advance


in your cellForRowAtIndexPath do this:

if ( indexPath.row == 0 )
    cell.accessoryType = UITableViewCellAccessoryNone;
else
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
0

精彩评论

暂无评论...
验证码 换一张
取 消