2016-04-01から1ヶ月間の記事一覧
let text = "aaaaaaaa" let attrText = NSMutableAttributedString(string: text) let attributes = [NSFontAttributeName:UIFont.systemFontOfSize(detailFontSize*2, weight:UIFontWeightThin)] attrText.addAttributes(attributes, range: NSMakeRange(te…
メモメモ参考サイト qiita.com
XcodeでのUILabelのフォントでstyleを指定できるのにコードではそれらしきものが見つからなくて調べた。メモ 参考ページ: stackoverflow.com // Weights used here are analogous to those used with UIFontDescriptor's UIFontWeightTrait. // See the UIFo…
まずは準備 import MessageUI class ViewController: UIViewController,MFMailComposeViewControllerDelegate { ・ ・ ・ func sendMail() { //メールを送信できるかチェック if MFMailComposeViewController.canSendMail()==false { print("Email Send Fail…