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)applicationDidFinishLaunching:(UIApplication *)application { | |
// ... do things | |
} |
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
// ... do things | |
navController = [[UINavigationControlleralloc] init]; | |
FirstViewController *firstViewController= | |
[[FirstViewControlleralloc] init]; | |
firstViewController.title = @"First"; | |
[navController pushViewController:firstViewController animated:NO]; | |
[firstViewController release]; | |
[windowaddSubview:navController.view]; | |
// ... do things |
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
// ... do things | |
SecondViewController *secondViewController = | |
[[SecondViewControlleralloc] init]; | |
secondViewController.title = @"Second"; | |
[self.navigationController pushViewController: | |
secondViewController animated:YES]; | |
[secondViewController 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
// ... do things | |
ThirdViewController *thirdViewController = | |
[[ThirdViewController alloc] init]; | |
[self.navigationController | |
pushViewController:thirdViewController animated:YES]; | |
[thirdViewController release]; | |
// ... do things |
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
TextFile*textFile = [[TextFile alloc] init]; | |
if ( [ textFile conformsToProtocol:@protocol(Document) ] == YES) { | |
// do something | |
} |
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) addDocument:(id) newDocument { | |
if ( [newDocument conformsToProtocol:@protocol(Document)]){ | |
// add the document... | |
returnYES; | |
} else | |
return NO; | |
} |
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
SEL setWidthHeight; | |
setWidthHeight = @selector(setWidth:height:); |
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
[myButtonCell setAction:@selector(reapTheWInd:)]; | |
[myButtonCell setTarget:anObject]; |
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
/* | |
* kCLLocationAccuracy<x> | |
* | |
* Discussion: | |
* Used to specify the accuracy level desired. | |
* The location service will try its best to achieve | |
* your desired accuracy. However, it is not guaranteed. | |
* To optimize power performance, | |
* be sure to specify an appropriate accuracy for your usage scenario | |
* eg, use a large accuracy value when only a coarse location is needed. |
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
/* | |
* locationManager:didUpdateToLocation:fromLocation: | |
* | |
* Discussion: | |
* Invoked when a new location is available. | |
* oldLocation may be nil if there is no previous location | |
* available. | |
*/ | |
- (void)locationManager:(CLLocationManager *)manager | |
didUpdateToLocation:(CLLocation *)newLocation |
OlderNewer