This file contains hidden or 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
// NSSet | |
NSMutableSet *fraseChorras = [NSMutableSet set]; | |
[fraseChorras addObject:@"Tengo un cimbel matutino"]; | |
[fraseChorras addObject:@"Con la forma de un pepino"]; | |
[fraseChorras addObject:@"Tengo un cimbel matutino"]; // no se añade | |
NSLog(@"El conjunto: %@", fraseChorras); | |
// NSCountSet |
This file contains hidden or 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
- (NSInteger)tableView:(UITableView *)tableView | |
sectionForSectionIndexTitle:(NSString *)title | |
atIndex:(NSInteger)index{ | |
NSLog(@"Touched on section %@", title); | |
NSInteger firstStartingWithLetter = 0; | |
// búsqueda de la primera familia cuyo nombre empieza | |
// por la letra tocada | |
for (NSString *familyName in self.familyNames) { |
This file contains hidden or 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
- (NSInteger)tableView:(UITableView *)tableView | |
sectionForSectionIndexTitle:(NSString *)title | |
atIndex:(NSInteger)index{ | |
NSLog(@"Touched on section %@", title); | |
NSInteger firstStartingWithLetter = 0; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Colors</key> | |
<dict> | |
<key>Background</key> | |
<string>0.168627 0.168627 0.207843</string> | |
<key>InsertionPoint</key> | |
<string>0.994444 0.988889 1</string> |
This file contains hidden or 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
#import "AGTStarWarsCharacter.h" | |
@interface AGTWookie : AGTStarWarsCharacter | |
+(instancetype) wookie; | |
-(void)fullBodyWax; | |
@end |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
@interface AGTStarWarsCharacter : NSObject | |
+(instancetype) starWarsCharacter; | |
@end | |
@implementation AGTStarWarsCharacter |
This file contains hidden or 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
#import "AGTStarWarsCharacter.h" | |
@interface AGTWookie : AGTStarWarsCharacter | |
+(id) wookie; | |
-(void)fullBodyWax; | |
@end |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
@interface AGTStarWarsCharacter : NSObject | |
+(id) starWarsCharacter; | |
@end | |
@implementation AGTStarWarsCharacter |
This file contains hidden or 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
// Created by Fernando Rodríguez Romero on 24/10/12. | |
// Copyright (c) 2012 Agbo. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <AudioToolbox/AudioToolbox.h> | |
int main(int argc, const char * argv[]) | |
{ |
This file contains hidden or 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
int main(int argc, const char * argv[], const char *envp[], const char *apple[]) | |
{ | |
// insert code here... | |
NSLog(@"Printing argv:"); | |
for (int i = 0; i < argc; i++) { | |
NSLog(@"%s\n", argv[i]); | |
} | |
NSLog(@"Printing envp"); |