2014-10-09 55 views
3

由於'無法識別的選擇器'和'釋放的實例'消息被髮送到不可公開訪問的類,我的應用程序(在iOS8上)很少崩潰。這些錯誤包括:奇怪的零星CUI ... NSInvalidArgumentException錯誤

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '-[CUIRenditionKey type]: unrecognized selector sent to instance 
0x14d04270' 

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '-[CUIMutableThemeRendition exifOrientation]: message sent to 
deallocated instance' 

因爲我沒有這些類的理解(他們也沒有出現在任何搜索):我怎麼來解決這些錯誤消息。

iOS8中存在這些缺陷嗎?

(這可能與this mac issue

回答

3

最近我有同樣的問題,並跟蹤它到一個錯誤的assign屬性設置,當它應該是retain - 一個愚蠢的複製粘貼錯誤。

所以基本上我有這樣一行:

@property (nonatomic, assign) id area; 

當它應該是:

@property (nonatomic, retain) id area; 

的賽格瑞調用代碼設置的值,然後釋放內存(想因爲它是未使用沒有保留)。所以當新的UIView出現時,選擇器被髮送到其他默認值(在我的情況下,CUIRenditionKey就像你的)。