하나는 일 단계 (35), MEM이내 코드에 문제가 있습니까? 내 응용 프로그램의
35 MyAppName 0x00002c60 0x1000 + 7264
0x00002c60 그래서 나는 다음과 같이 충돌 지점의 위치를 명령 ATOS라는 주소, thread0에서 추락 :
atos -arch armv6 -o MyAppName.app/MyAppName 0x00002c60
이
을 반환합니다-[AppDelegate setGPictureArray1:] (in MyAppName) (AppDelegate.m:9)
나는 모든 코드를 선으로 표시하기 전에
//AppDelegate.h
#import <UIKit/UIKit.h>
#import "RootViewController.h"
@class RootViewController;
@interface AppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
IBOutlet RootViewController *rootViewController;
NSMutableArray * gPictureArray1;
NSMutableArray * gPictureArray2;
}
@property (nonatomic, retain) NSMutableArray * gPictureArray1;
@property (nonatomic, retain) NSMutableArray * gPictureArray2;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) RootViewController *rootViewController;
@end
//AppDelegate.m
#import "AppDelegate.h"
#import "RootViewController.h"
@implementation AppDelegate
@synthesize window;
@synthesize rootViewController;
@synthesize gPictureArray1;//**it looks like the crash happens here**
@synthesize gPictureArray2;
문제가 있음을 발견했습니다. 의견을 환영합니다.
문제입니다. –