- Introduction to Functional Programming Johannes Weiß - http://kcy.me/1ngiv
- ReactiveCocoa at MobiDevDay Andrew Sardone - http://kcy.me/1nhl3
- The Future Of ReactiveCocoa Justin Spahr-Summers - http://kcy.me/1nhs7
- Enemy of the State Justin Spahr-Summers - http://kcy.me/1njzs
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - http://kcy.me/1pyva
- Functioning as a Functionalist Andy Matuschak - http://kcy.me/22o45
- Controlling Complexity in Swift Andy Matuschak - http://kcy.me/23sc9
- Functional and reactive programming with Swift Ash Furrow -
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
NSDictionary *normalSettings = @{UITextAttributeTextColor: [UIColor grayColor], UITextAttributeFont: [UIFont systemFontOfSize:13]}; | |
[self.segmentControl setTitleTextAttributes:normalSettings forState:UIControlStateNormal]; | |
NSDictionary *highlightedSettings = @{UITextAttributeTextColor: [UIColor red:43 green:206 blue:119 alpha:1.0], UITextAttributeFont: [UIFont systemFontOfSize:16]}; | |
[self.segmentControl setTitleTextAttributes:highlightedSettings forState:UIControlStateSelected]; |
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)drawRect:(CGRect)rect | |
{ | |
CGContextRef con = UIGraphicsGetCurrentContext(); | |
CGContextSetFillColorWithColor(con, [UIColor grayColor].CGColor); | |
CGContextFillRect(con, rect); | |
CGContextAddEllipseInRect(con, self.circle); // self.circle is a property of CGRect | |
CGContextClip(con); | |
CGContextClearRect(con, self.circle); | |
} |
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
NSString *pattern = @"([\\.\\+\\(\\)\\-\\_\\s])"; | |
NSRegularExpression *re = [NSRegularExpression regularExpressionWithPattern:pattern options:NSRegularExpressionCaseInsensitive error:nil]; | |
NSString *replaced = [re stringByReplacingMatchesInString:phoneNumber options:0 range:NSMakeRange(0, [phoneNumber length]) withTemplate:@""]; | |
NSLog(@"%@", replaced); |
NewerOlder