Need job

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

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;

5 comments:

  1. But where to enter this code? What source file?

    ReplyDelete
    Replies
    1. Anywhere you like, for example in - (void)viewDidLoad

      Delete
    2. Thanks, i've a problem with compiling storyboard. Just deleted from Storyboard XML Source

      Delete
  2. when you declarre tableTripPoints ?? I got inform that I didn't declare that.??

    ReplyDelete