Rodhos Soft

備忘録を兼ねた技術的なメモです。Rofhos SoftではiOSアプリ開発を中心としてAndroid, Webサービス等の開発を承っております。まずはご相談下さい。

iOS

CoreData

自動マイグレーションする場合 新しいモデルバージョンをつくる(Edit/Add Model Version) モデルバージョンの新しい方に設定しておく(File Inspecterで) エンティティをいじるなどの修正 マッピングモデルを作成する。(ソースが旧、ターゲットが新) NSPersis…

UIDynamicItemで重力

iOS

iOS7から可能。 タップすると重力で床に落ちていく。 UIDynamicItem GravityUIDynamicAnimatorに UIGravityBehaviorとUICollisionBehaviorを追加し、ビューを作ったらこれらのBehaviorにaddしていく。 参考にしたもの Safx: UIKit Dynamicsを使ってみるチュ…

appleのサンプル

iOS

CryptoExercise Reachability ネットワークチェック

開発に役立つリンク

QA系 appleの開発フォーラム https://devforums.apple.com/community/iosスッタクオーバーフローstackoverflow.com ja.stackoverflow.comキータqiita.com

ストーリーボードに切り替える

iOS

基本は以下を参照すれば良い。Beginning Storyboards in iOS 5 Part 1 - Ray Wenderlich流れとしては mainの引数にAppDelegateを入れる。 AppDelegateがUIAplicationから変更されている。 AppDelegateにはwindowsプロパティをつける。IBOutletを付けない。 d…

サンプルコード

iOS

Apple 2014/11 WatchKit Catalog: Using WatchKit Interface Elements Lister (for Apple Watch, iOS, and OS X) UICatalog: Creating and Customizing UIKit Controls (Obj-C and Swift) PhotoMap

AppDelegateでの向きの指定について

iOS

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window これをAppDelegateに実装するとシステムから特定のウィンドウにおいてビューコントローラで使うインターフェースの向きが尋ねられる。…