金曜日の夜、私のアプリは完璧に機能していました。そこで土曜日、UI の微調整を開始することにしました。背景画像付きの画像ビューを追加し、背面に押し込みました。次に、いくつかのコントロールを移動して、より適切に整列させました。
今、私のアプリはシミュレーターの読み込み画面でハングし、iPad の黒い画面に移動します。エラーはまったく発生しません。
背景画像を削除しようとしましたが、効果はありませんでした。
SPRAppDelegate.m の didFinishLaunchingWithOptions にブレークポイントを設定すると、問題なくその関数が実行されます。SPRViewController.m の ViewDidLoad と同じこと
サブクラス化されたテキスト フィールドがいくつかあるので、サブクラス化されたファイルの awakeFromNib 関数の 1 つにブレークポイントを設定します。それは実行されません。
どのソースコードが役立つかわかりませんが、これが私の info.plist です
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>ring-it-up-sm-reversed.png</string>
<string>ring-it-up-72-reversed.png</string>
</array>
</dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.steveradabaugh.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UIStatusBarHidden~ipad</key>
<false/>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
</dict>
</plist>
メインのペン先がまったくリストされていないことに気付きましたが、もうそれを行う必要はないと考えています.
これが Main.m #import です
#import "SPRAppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([SPRAppDelegate class]));
}
}
SPRAppDelegate.m から:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[SPRViewController alloc] initWithNibName:@"SPRViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
他に何を手伝うことができますか?
[編集] 私はそれを理解しようとして遊んでいます。ロード/スプラッシュ画面が表示され、次に背景画像が表示されますが、コントロールは読み込まれません。(シミュレーターで)。デバイスでは、スプラッシュ スクリーンが表示され、次に黒くなります。ローディング画面を背景と違うものに変更しました。