0

これは漠然とした質問になると思いますが、考えてみてください... iPadでブックリーダーを開発しており、ハイライト、メモなどの多くの機能があり、これらすべての機能がうまく機能しています。しかし、問題は、機能を実装した後にデバイスを回転させようとしたときにのみ発生します..itzの向きを変更した後、アプリが攻撃されます(またはハングします....

アプリが通常ハングする理由を誰か教えてもらえますか???? これを考えてください。あなたの意見は私が長い道のりを歩むのに役立ちます.....

ありがとう

4

1 に答える 1

0

コントロール フレームの設定に問題がある可能性があります。

アプリケーションがポートレート モードのみをサポートする場合、次のようなコードを意味します。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

そうしないと

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return YES;
}

それに応じて制御フレームを変更します。

于 2010-12-28T12:23:34.260 に答える