2016-01-01から1年間の記事一覧
今更ながらobjective-cでのアラートをメモ。 よく忘れるので。 UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"タイトル" message:@"メッセージ?" preferredStyle:UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAct…
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…