iPad multitasking
6月 21st, 2018
Invalid Bundle. iPad Multitasking support requires these orientations: ‘UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight’. マルチタスキングで利用できるアプリは回転に対応しないといけないというものでした。 回転不要なので、Requires full screenにチェックします。
iPadシミュレーターに黒枠、1x 2x切替表示される・・・?
6月 19th, 2018
iPad用の制約を追加してシミュレーターでみてもiphoneの表示だったのですが・・・ ビルドの設定が UniversalではなくてiPhoneになっているだけでした。。。 General > Devices をUniversalにしたら両方大丈夫でした。
[titanium] [iOS] rsync failed v3.4.0
10月 27th, 2014
iOS版を更新しようとしたら。。。 archiveをvalidateできませんでした。 https://developer.appcelerator.com/question/177627/app-store-build—340—rsync-failed ということで Validate, Submitすると出る確認画面で “Include app symbols for your application to receive symbolicated crash logs from Apple.” のチェックを外すとOKでした。
core data | ios
6月 20th, 2012
Core Data Programming Guide http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CoreData/Articles/cdBasics.html#//apple_ref/doc/uid/TP40001650 こんな感じで、保存出来るらしい。sqliteも使えるっぽい。 xcodeでファイル追加 core data ⇒ data modelで .xcdatamodelというのが出来た。 ここに属性とかを入れていくらしい チュートリアルしてみる。 http://developer.apple.com/library/ios/#documentation/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008305 emptyプロジェクトで use core data にチェックすると ヘッダーファイルに 01に書かれているように、Delegate.hに @property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext; @property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel; @property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator; – (NSURL *)applicationDocumentsDirectory; – (void)saveContext; が生成されている。 http://developer.apple.com/library/ios/#documentation/DataManagement/Conceptual/iPhoneCoreData01/Articles/02_RootViewController.html 適当に入れて、一回目のビルド Undefined symbols for architecture i386: “_OBJC_CLASS_$_CLLocationManager”, referenced […]
変数名を一括変換、修正 | xcode
6月 18th, 2012
変数名を間違えていたので修正するときには 変数名を選択 Edit > Refactor > Rename で変換すると変更部分も確認出来ました。
property設定時のパラメーターの英語の意味 | objective c
6月 15th, 2012
retain : 保つ copy : 写す、複製 assign : 割り当てる nonatomic : 原子でない。 [ atomic : 原子、(分割出来ない)] strong : 強い weak : 弱い メモ strongの参照を持つプロパティは、viewDidUnloadで = nil;する。
ストーリーボード | iOS
6月 13th, 2012
2つ目のiOSアプリケーション:ストーリーボード https://developer.apple.com/jp/devcenter/ios/library/documentation/SecondiOSAppTutorial.pdf https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011318 これをやってみる。
UILabel の位置を変更
6月 12th, 2012
CGRect frame = priceLabel.frame; frame.origin.y = titleHeight+20; priceLabel.frame = frame; origin.x origin.yを変更すると変わる。
UILabel sizeToFit | ios
6月 12th, 2012
lines : 0 linebreak : word wrap で titleLabel.text = @”あああああああああああああああああ”; CGRect frame = titleLabel.frame; frame.size.width=305; titleLabel.frame = frame; [titleLabel sizeToFit]; 幅を固定しておくことも重要なようです。 で文字数に合わせて高さが変わってくれました。