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
1) Open terminal | |
2) $ sudo gem install cocoapods (gem will get installed in Ruby inside System library) | |
3)pod setup | |
4) create a xcode project | |
5) cd "$ path to your project root directory" (cd /Volumes/...) | |
6) pod init | |
7) open -a Xcode Podfile (podfile will get open in text mode. Initially it will be emppty put the follwoing line of code.) | |
8) pod 'AFNetworking', '0.9.1' (It’s finally time to add your first dependency using CocoaPods! Copy and paste the following into your pod file, right after target "AFNetworkingProject" do:) | |
9) pod install | |
Make sure you run “$ pod install” command every time you add or delete a new library to the Podfile. |
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
#pragma mark - UITableView Datasource | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ | |
return 1; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ | |
return 5; | |
} | |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ | |
static NSString *CellIdentifier = @"ClubCell"; | |
ClubCell *cell = (ClubCell*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; |
NewerOlder