XML Date to CoreData NSDate
Here is code snippet to parse a XML string to Core Data NSDate. NSString *string = [currentString stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]]; NSLocale* usLocale...
View ArticleLimit the size of UITextField
// Text field delegates - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if ([[textField text] length] + [string length] -...
View ArticleEnable SQL Debugging in Xcode4
If you would like to output the SQL being generated by Core Data, here is the quick steps: Go to Product -> Edit Scheme Choose Run YourAppName.app Add -com.apple.CoreData.SQLDebug 1 to the Arguments...
View ArticleA handy way to dismiss keyboard
This method looks at the current view and its subview hierarchy for the text field that is currently the first responder. If it finds one, it asks that text field to resign as first responder. If the...
View Article