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 *underlineAttribute = @{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle)}; | |
myLabel.attributedText = [[NSAttributedString alloc] initWithString:@"Underline UILabel text" attributes:underlineAttribute]; |
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
-(CGSize)frameForText:(NSString*)text sizeWithFont:(UIFont*)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode { | |
NSMutableParagraphStyle * paragraphStyle = [[NSMutableParagraphStyle defaultParagraphStyle] mutableCopy]; | |
paragraphStyle.lineBreakMode = lineBreakMode; | |
NSDictionary * attributes = @{NSFontAttributeName:font, | |
NSParagraphStyleAttributeName:paragraphStyle | |
}; | |
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
#!/usr/bin/env bash | |
# Using bento/ubuntu-14.04 vm box and Vagrant v1.9.8 | |
# Corresponding line in Vagrantfile: config.vm.provision "shell", path: "bash-it.sh", privileged: false | |
# https://github.com/Bash-it/bash-it | |
# https://www.vagrantup.com | |
export DEBIAN_FRONTEND=noninteractive | |
# Clonning bash-it repo |
OlderNewer