Need job

Looking for job in Europe. Please contact thru LinkedIn profile.

Showing posts with label Xcode 5. Show all posts
Showing posts with label Xcode 5. Show all posts

Friday, August 23, 2013

UITableView custom Separator Insets workaround

Hello everybody.
Here is a workaround when you try to set custom separator insets thru IB in Xcode Version 5.0 (5A11365j).
If you try, you will get:
Exception while running ibtool: *** -[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs

Fix with coding:

UIEdgeInsets edges;
edges.left = 0;
tableTripPoints.separatorInset = edges;