0
こんにちは私は戻るボタンをタップすると私のiPhoneアプリケーションがクラッシュしています。私は本当になぜこれが起こっているのか分からない。私のアプリケーションがクラッシュしているところを画像で見ることができます。前のViewControllerに移動するとアプリケーションがクラッシュする
私のボタンは1つのアクションでのみ接続されていることを既に確認しています。だから私は問題が何かを正確に知ることができません。
plzは私を許し、その後、私の質問は愚かな場合は、私はiPhoneの開発に新しいですので、私は、デバイスとプリンターを使用していますが、私はそれがあるかもしれないいくつかの問題
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.colors = [NSArray arrayWithObjects:(id)[[UIColor colorWithRed:0.8 green:0.8 blue:1 alpha:1] CGColor],(id)[[UIColor colorWithRed:0.05 green:0.05 blue:0.38 alpha:255] CGColor], nil];
//creating the iEpsonCom objects
m_deviceParams = [[DeviceParameters alloc] init];
m_device = [[Device alloc] init];
//registering the callback
[m_device registerCallback:self withSelector:@selector(callbackMethod:)];
//creating a thread for regularly checking the connection state
m_Thread = [[ThreadClass alloc] init];
[m_Thread registerCallback:self withSelector:@selector(connectionStateThreadCallbackMethod:)];
[m_Thread setMilliseconds:300]; //check the connection state every 300 ms
[m_Thread start]; //start the thread
あなたが解雇しているviewControllerのdeallocメソッドでは何が起こっていますか?たぶんあなたは何かを過剰に取り返しているかもしれません。 – Alexander
また、このviewControllerの表示/破棄を設定するコードを投稿すると助けになります。 –
返信用のThanxでは、私はオブジェクトをdeallocで解放していますが、オブジェクトのリリースはすべてコメントしていますが、まだクラッシュしています – Mashhadi