Tag: uikit
-
Verifying UIKit is Running on the Main Thread
As previously mentioned: to get the UI to update, you need to run yourUIKit configuring code on the main thread. Peter Stienberger has posted agreat snippet of code that raises an assertion whenever you attempt toaccess UIKit code from off of the main thread. Simply add the file to yourproject (and swap out the PSPDFLogError…
-
Alignment Options in Auto Layout
In OS X Lion and iOS 6 Apple added a new way to layout views, Auto Layout. This is a very powerful system that will handle a lot ofthe work and overhead of arranging your views. A well defined layout can make many headaches disapear entirely. However, it is a bit…quirky…to say the least.[^1] I…