UIColor Macro for hex
What’s better than a macro for RGB to UIColor? Hex son!
Thanks mystcolor
What’s better than a macro for RGB to UIColor? Hex son!
Thanks mystcolor
Check out Blocks
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSUInteger newLength = [textField.text length] + [string length] - range.length;
return (newLength > 25) ? NO : YES;
}
At minimum:
1. add <UITextFieldDelegate> protocol to class
2. set delegate of textfield
3. implement - (BOOL)textFieldShouldReturn:(UITextField *)textField
Check out this article on how to reuse a UITableView for nested data (drill down hierarchy)
1. Prepare for Upload
2. Waiting For Upload
3. Upload Received
4. Waiting For Review
5. In Review
6. Processing for App Store
7. Ready for Sale
Steps 1-2 are on the developer side.. app reviews as of March 2012 take about a week (read on the internet that iPad apps get faster reviews.. maybe because there are less iPad apps..)
To update the app display name, find the application .plist file (in Xcode 4.2, look in the Supporting Files folder) and update the field “Bundle Display Name”
Unfortunately any name over 12 characters is truncated.. :-(
iOS app icon sizes by Louie Mantia
via @shawnblanc (also see mrgan’s)
Lockscreen implementation
I first used four password protected textfields to implement the iPhone lockscreen (simple protection scheme for an app)

It worked.. sort of but then there were the issues of trying to hide the cursor or override the backspace key behavior
Here’s the much better implementation:
- create a hidden textfield and monitor it for change
- assign it the becomeFirstResponder method
- restrict the input to 4 characters
- the boxes are actually images (box_filled.png and box_empty.png) that are updated based on the input length of the hidden textfield (3 inputs = first 3 boxes filled, 4th empty etc)
Voila. Dive into the code of KKPasscodeLock or JSLockScreen for the gory details