This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction) createV1ViewANDperformTransition { | |
[self createV1View]; | |
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, .25 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void){ | |
[self performTransition]; | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) deleteAllObjects: (NSString *) entityDescription { | |
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; | |
NSManagedObjectContext *managedObjectContext = [self backgroundManagedObjectContext]; | |
NSEntityDescription *entity = [NSEntityDescription entityForName:entityDescription inManagedObjectContext:managedObjectContext]; | |
[fetchRequest setEntity:entity]; | |
NSError *error; | |
NSArray *items = [managedObjectContext executeFetchRequest:fetchRequest error:&error]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TableViewBackground.png"]]; | |
[tempImageView setFrame:self.tableView.frame]; | |
self.tableView.backgroundView = tempImageView; | |
[tempImageView release]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.tableView.backgroundColor=[UIColor clearColor]; | |
UIImage *backgroundImage = [UIImage imageNamed:@"about_background.png"]; | |
UIImageView *backgroundImageView = [[UIImageView alloc]initWithImage:backgroundImage]; | |
backgroundImageView.frame = CGRectMake(500, 500, 1000, 2000); | |
backgroundImageView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; | |
self.tableView.backgroundView = backgroundImageView; | |
[backgroundImageView release]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { | |
//NSLog(@"textfield hit: %@", textField.placeholder); | |
if (string.length == 0) { | |
return YES; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) deleteAllObjects: (NSString *) entityDescription { | |
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; | |
NSEntityDescription *entity = [NSEntityDescription entityForName:entityDescription inManagedObjectContext:context]; | |
[fetchRequest setEntity:entity]; | |
NSError *error; | |
NSArray *items = [context executeFetchRequest:fetchRequest error:&error]; | |
for (NSManagedObject *managedObject in items) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (ZCDataStore *)sharedStore | |
{ | |
static ZCDataStore *shared = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
shared = [[super allocWithZone:nil] init]; | |
}); | |
return shared; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 70274d53c1dd -r 56ac083c60dc Doc/library/debug.rst | |
--- a/Doc/library/debug.rst Mon Apr 09 19:04:04 2012 -0400 | |
+++ b/Doc/library/debug.rst Tue Jul 03 03:19:10 2012 +0200 | |
@@ -14,4 +14,5 @@ | |
profile.rst | |
hotshot.rst | |
timeit.rst | |
- trace.rst | |
\ No newline at end of file | |
+ trace.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://sourceforge.net/projects/dfu-programmer/files/ | |
real server: Looking for the latest version? Download 0.6.2 tarball (134.9 kB) | |
script: <span>Download 0.6.1 tarball (134.4 kB)</span> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//problem: | |
[queryA findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
doThingWithAObjects; | |
}]; | |
[queryB findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
doThingWithBObjectsThatNeedsToHappenAfterAIsDone; | |
}]; |
OlderNewer