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
| @implementation AClass | |
| @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
| - (void)viewDidLoad | |
| { | |
| UINib *nib = [UINib nibWithNibName:@"GameTableViewCell" bundle:nil]; | |
| [self.tableView registerNib:nib forCellReuseIdentifier:@"GameTableViewCell"]; | |
| .... | |
| } | |
| - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| cell = [tableView dequeueReusableCeithIdentifier:@"GameTableViewCell" forIndexPath:indexPath]; |
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 | |
| func addition(range: Range<Int>) -> Int | |
| { | |
| var sum = 0 | |
| let enumerator: (object: AnyObject, index: Int,stop: UnsafeMutablePointer<ObjCBool>) -> Void = { | |
| (object, index, stop) -> Void in | |
| if let number: Int = object as? Int { |
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 <UIKit/UIKit.h> | |
| NS_ASSUME_NONNULL_BEGIN | |
| OBJC_ROOT_CLASS | |
| @interface UIAlertControllerBundle | |
| + (UIAlertController *)alertControllerForPresentError:(NSString *)errorMessage; | |
| @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
| ******* UIColor catagory ******** | |
| + (NSArray *)colorComponentsFromColor:(UIColor *)color | |
| { | |
| const CGFloat *components = CGColorGetComponents(color.CGColor); | |
| NSString *colorAsString = [NSString stringWithFormat:@"Red : %.0f, Green : %.0f, Blue : %.0f, Alpha : %.0f", components[0]*255.0, components[1]*255.0, components[2]*255.0, components[3]*100]; | |
| NSArray *componentsArr = [colorAsString componentsSeparatedByString:@","]; | |
| return componentsArr; | |
| } |
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 https://www.toptal.com/developers/gitignore/api/osx,xcode,swift | |
| # Edit at https://www.toptal.com/developers/gitignore?templates=osx,xcode,swift | |
| ### OSX ### | |
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride |
NewerOlder