Categories
- Code (3)
- Code Snippets (12)
- git (1)
- Hardware (1)
- News (5)
- Objective-C (6)
- Precompiled (4)
- Programming (1)
- Review (1)
- Swift (9)
- Swift Standard Library (3)
- Tips (3)
- Tutorial (22)
- Uncategorized (3)
- WWDC (1)
-
Recent Posts
Meta
-
Tag Archives: UIKit
Tutorial: Using UITableView — Adding A Detail View in XCode 4
In this tutorial you’ll learn how to add a detail view controller to a the UITableView you created in the first Using UITableView tutorial. You’ll be using the visual editor in XCode 4 to layout the view. The view you’ll … Continue reading
Tutorial: Using UITableView
This is a brief tutorial on how to use UITableView. Instead of populating the table with a list of hard-coded strings, I would like to show you how to do something (slightly) more useful: list all the fonts available on … Continue reading
Handy UIKit Debugging Functions
I don’t know how many times I had typed something like
1 2 3 4 5 |
NSLog(@"self.bounds (%g,%g,%g,%g)" self.bounds.origin.x, self.bounds.origin.y, self.bounds.size.width, self.bounds.size.height); |
before I discovered that UIKit has the following handy string conversions functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
NSString* NSStringFromCGAffineTransform ( CGAffineTransform transform); NSString* NSStringFromCGPoint ( CGPoint point); NSString* NSStringFromCGRect( CGRect rect); NSString* NSStringFromCGSize( CGSize size); NSString* NSStringFromUIEdgeInsets( UIEdgeInsets insets); |
Reference UIKit Function Reference