iOSDevTraining / books-and-movies

A simple app that pulls books (and movies) from a JSON feed, lists them in a table view, and shows detail about them.
iosdevtraining.com
MIT License
22 stars 13 forks source link

Workaround for Apple’s bug with UITableViewCells’ separators #6

Closed Eddpt closed 10 years ago

Eddpt commented 10 years ago

not displaying correctly after rotation. This is happening in iOS7 if you enter the Detail View, put the device to landscape, and pop the view going to the previous one. The separators do not scale in order to use all the available width.

Some other tweaks to property declarations like putting nonatomic and weak for IBOutlets since the view already strongly holds a references to them and only the UI thread can access thus there's no need for atomic.

Also, made cellIdentifier static so that it is the same instance in memory every time cellForRowAtIndexPath is called.

Eddpt commented 10 years ago

Sorry for all the open/close issues, I had to re-apply each commit in order to pull request specific changes