Swift
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…
久々にブログを更新します。 今回は、iPhoneアプリを作る為の新しい言語「Swift」を学びました。 今までの「objective-c」言語との違いをまとめようと思います。 ======================================== 参考サイト↓ まず、Appleの公式ドキュメント The S…