ObjC - Hide UITableView separator strings on iPhone

I am trying to do this with the following line:

tableView.separatorStyle = UITableViewCellSeparatorStyleNone; 

and it works! on the simulator .. strange when I run the application on the iPhone (3Gs), they reappear.

Any ideas why this could be happening?

(Also the labels and images of my custom cells are displayed in the wrong positions, maybe the same problem)

There is absolutely no difference between the simulator and the device code (this is the same code that compiles).

+4
source share
1 answer

It seems to be Apple's mistake. I upgraded to iOS 4.0.1 (with the Xcode + SDK update, of course), and now everything works fine.

0
source

Source: https://habr.com/ru/post/1316265/


All Articles