POS 百怡富零售系統
百怡富科技有限公司


 
標題: iOS 5.0
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 207
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2012-4-1 02:19  資料 文集 短消息 
iOS 5.0

iOS Programming
頂部
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 207
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2012-4-1 02:25  資料 文集 短消息 
Thread 1: Program received signal: "SIGABRT".

@autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }

Sol.:  TARGETS --> Summary --> Identifier  -->  xxx.yyyyyyyy.apps   (due to the Identifier)
頂部
pericles
管理員
Rank: 9Rank: 9Rank: 9



UID 1
精華 0
積分 0
帖子 207
閱讀權限 200
註冊 2006-12-2
狀態 離線
發表於 2012-4-8 02:07  資料 文集 短消息 
'copy' attribute does not match ... from 'MKAnnotation'

Property 'title' 'copy' attribute does not match the property inherited from 'MKAnnotation'
Property 'subtitle' 'copy' attribute does not match the property inherited from 'MKAnnotation'



@interface MyAnnotation : NSObject <MKAnnotation> {
    CLLocationCoordinate2D coordinate;
    NSString *subtitle;  
    NSString *title;
}
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@property (nonatomic, retain) NSString *subtitle;  
@property (nonatomic, retain) NSString *title;

-(id)initWithCoordinate: (CLLocationCoordinate2D) coordinate;

@end

Sol:  Change it to:

@property (nonatomic, copy) NSString *subtitle;
@property (nonatomic, copy) NSString *title;

The MKAnnotation protocol declares

@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *subtitle;

You shouldn't change the storage type of a property, the only change you can / should make is from readonly to readwrite if needed;
頂部
 


當前時區 GMT+8, 現在時間是 2019-10-17 12:36

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.013633 second(s), 6 queries

清除 Cookies - 聯繫我們 - 百怡富科技有限公司 - Archiver - WAP