この作品はなぜ:奇妙な割り当てエラー
- (void) setupInteraction:(IBITSInteraction*)interaction withInfo:(NSDictionary*)info
{
CGRect rect = ([info objectForKey:kInteractionFrameKey] ? CGRectFromString([info objectForKey:kInteractionFrameKey]) : CGRectZero);
interaction.frame = rect;
...
}
、なぜこれが?:
- (void) setupInteraction:(IBITSInteraction*)interaction withInfo:(NSDictionary*)info
{
interaction.frame = ([info objectForKey:kInteractionFrameKey] ? CGRectFromString([info objectForKey:kInteractionFrameKey]) : CGRectZero);
...
}
私はまったく同じ...
- コンパイラであるとは思いません。LLVMをGCC 4.2
- エラー(2番目のケース):読み取り専用変数 'prop.283'の割り当て
- プロパティフレーム:事前に、それぞれの
@synthesize
おかげで@property (nonatomic, assign) CGRect frame;
。
エラーメッセージの明瞭さが欠けているのは、達成するのが難しいですね。 – bbum
コンパイラのバグのように聞こえます。あなたは別のコンパイラを使ってみましたか? –
LLVM 2.0の両方のケースが動作します... – D33pN16h7