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)touchesShouldCancelInContentView:(UIView *)view | |
{ | |
if ( [view isKindOfClass:[UIButton class]] ) { | |
return YES; | |
} | |
return [super touchesShouldCancelInContentView:view]; | |
} |
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
codesign -d --entitlements - AppBinary |
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
private var _finished: Bool = false; | |
override var finished: Bool { | |
get { | |
return _finished | |
} | |
set { | |
if _finished != newValue { | |
willChangeValueForKey("isFinished") | |
_finished = newValue | |
didChangeValueForKey("isFinished") |
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
var yesNo: Bool = true | |
switch (yesNo) { | |
case true: | |
println("True") | |
case false: | |
println("False") | |
} |
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
๐ Thermometer | |
๐ Black Droplet | |
๐ White Sun | |
๐ White Sun With Small Cloud | |
๐ White Sun Behind Cloud | |
๐ White Sun Behind Cloud With Rain | |
๐ Cloud With Rain | |
๐ Cloud With Snow | |
๐ Cloud With Lightning | |
๐ Cloud With Tornado |
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
operator infix .. { | |
} | |
operator infix * { | |
} | |
operator infix & { | |
} | |
operator infix + { |
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
NSLayoutManager *layoutManager = [[self textView] layoutManager]; | |
NSTextContainer *container = [[self textView] textContainer]; | |
[layoutManager ensureLayoutForTextContainer:container]; | |
CGRect rect = [layoutManager usedRectForTextContainer:container]; | |
CGFloat height = CGRectGetHeight(rect); | |
UIEdgeInsets insets = [[self textView] textContainerInset]; | |
height += insets.top; | |
height += insets.bottom; | |
height = ceilf(height); | |
return CGSizeMake(320, height + 16); // 16 comes from the current top and bottom cell padding. |
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
for i in *.png; do mv "$i" "${i%.png}@2x.png"; done |
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
dwarfdump --uuid myapp.app/myapp | |
dwarfdump --uuid myapp.app.dSYM |
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)awakeFromNib __attribute__((objc_requires_super)); | |
-(void)prepareForReuse __attribute__((objc_requires_super)); |