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
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; |
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)layoutSubviews { | |
[super layoutSubviews]; | |
CGFloat radius = 2.0f; | |
self.layer.cornerRadius = radius; | |
self.layer.masksToBounds = NO; | |
self.layer.shadowColor = [UIColor blackColor].CGColor; | |
self.layer.shadowOffset = CGSizeMake(0, 3); | |
self.layer.shadowOpacity = 0.5; | |
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
CustomHeaderViewWithAutoLayout *customHeaderView = [[CustomHeaderViewWithAutoLayout alloc] init]; | |
CGFloat fittingSize = [customHeaderView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize]; | |
CGRect fittingFrame = customHeaderView.frame; | |
fittingFrame.size = fittingSize; | |
customHeaderView.frame = fittingFrame; | |
tableView.tableHeaderView = customHeaderView; |
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 *localization = [NSBundle mainBundle].preferredLocalizations.firstObject; | |
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:localization]; |
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
# Xcode | |
# | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 |
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
NSMutableString *result = [NSMutableString string]; | |
for (NSString* familyName in [UIFont familyNames]) { | |
[result appendString:[NSString stringWithFormat:@"\nFontFamily:%@ \nFonts:", familyName]]; | |
NSArray *fontNames = [UIFont fontNamesForFamilyName:familyName]; | |
[result appendString:[NSString stringWithFormat:@"\n%@", fontNames]]; | |
} | |
NSLog(@"%@", result); |