Archive

Archive for the ‘iOS SDK’ Category

Single line UITextView

The standard behaviour of the UITextView automatically resets the contentInset property to 32, which causes strange behaviour if you just want an UITextView with a single line. On responding the cursor disappears in the negative content area. The solution is simple. Just subclass the UITextView and force overwrite the property contentInset with UIEdgeInsetsZero. It just acts like an UITextField now. The SMS.app for example uses this behaviour for text-input with the ability to enter multiple lines.

Read more…

Categories: iOS SDK Tags:

Custom fonts since iPhone OS 3.2

Finally iPhone OS 3.2 supports custom fonts. Here is a short summary what you have to do..

Supported font formats are ..

  • TrueType-flavoured OpenType (extension .ttf) and
  • PostScript-flavoured OpenType (extension .otf).

Ok what you have to do is simple ..

Read more…

Follow

Get every new post delivered to your Inbox.