Objective-C
Javaだったら、 Calendar cal = Calendar.getInstance(); int max = cal.getMaximum(Calendar.DATE);みたいな感じ(そらで書いたので間違ってるかも)で取れる、当月の月末が何日かを取得する方法。 NSCalendar *cal = [NSCalendar currentCalendar];// 現在…
http://developer.apple.com/jp/documentation/cocoa/Conceptual/CoreData/Articles/cdRelationships.html ・アクションなし → 関係先オブジェクトには何もしない ・無効にする → 関係先オブジェクトが持っている自分をヌルにする ・カスケード → 関係先オブ…
整数を文字列へ int x = 100; NSString *str = [NSString stringWithFormat:@"%d", x];実数を文字列へ float x = 1.2345f; // 小数点以下2桁まで NSString *str1 = [NSString stringWithFormat:@"%.2f", x]; // 1.23 // 3桁 NSString *str2 = [NSString stri…