エントリーの編集
![loading...](https://b.st-hatena.com/0c3a38c41aeb08c713c990efb1b369be703ea86c/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/0c3a38c41aeb08c713c990efb1b369be703ea86c/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
NSDateとNSDateComponentsの相互変換
NSDateとNSDateComponentsの相互変換は、以前にも書いたNSCalendarクラスを使って行います。 NSDate→NSD... NSDateとNSDateComponentsの相互変換は、以前にも書いたNSCalendarクラスを使って行います。 NSDate→NSDateComponents変換はNSCalendarクラスのcomponentsメソッド。 NSDateComponents→NSDate変換はdateFromComponentsメソッドを使います。 // NSDateComponentsのインスタンス生成 NSDateComponents* cmp = [[NSDateComponents alloc] init]; // NSDateComponentsに日付を設定 [cmp setYear:2010]; [cmp setMonth:05]; [cmp setDay:01]; // NSCalendarのインスタンス生成 NSCalendar* cal = [NSCalendar currentC
2015/04/28 リンク