以前作ったアプリでUIScrollViewのAutoLayoutをStoryBoard上でいい感じに設定するのに苦労したので、その部分だけ抜き出して作成したプロジェクトをgithubに置いておきました。
Read the rest of this post
iOSやAndroid開発でのエラー解決法や便利tipsのメモ
以前作ったアプリでUIScrollViewのAutoLayoutをStoryBoard上でいい感じに設定するのに苦労したので、その部分だけ抜き出して作成したプロジェクトをgithubに置いておきました。
Read the rest of this post
‘NSUnknownKeyException’, reason: ‘[
NSUnknownKeyExceptionでググると情報がたくさん出てきます。
どうやらStoryBoardとコード側のデータの不整合が原因なようです。
interface builderで新しいoutlet connection作ろうとしたらエラーが発生。
“Could not insert new outlet connection: Could not find any information for the class named CLASSNAME”
classはちゃんと存在するのに・・・。
Stack Overflowの回答(Xcode 4: Creating a UIView xib, not properly connecting)を参考に~/Library/Developer/XCode/DerivedData以下を削除したら解決しました。
それでもダメな場合は該当のクラスファイルを一度削除してから再度追加するといいようです。
Storyboards are unavailable on iOS 4.3 and prior
iOS5以上でないとStoryboardは使えないのでDeployment Targetを5.0未満にするとこのエラーが出ます。
その後iOS5以上に設定しなおしてもこのエラーが消えませんでした。
Read the rest of this post
“Segues initiated directly from view controllers must have an identifier for use with -[UIViewController performSegueWithIdentifier:sender:]”というエラーが発生しました。
segueのIdentiferが設定されていなかったことが原因でした。
Read the rest of this post