例如:在方法中使用像CGRectMake這樣的函數而不是首先創建變量是錯誤的嗎?
someView = [[UIView alloc] initWithFrame:CGRectMake(120, 205, 200, 200)];
而不是:
CGRect frame = CGRectMake(120, 205, 200, 200);
someView = [[UIView alloc] initWithFrame:frame];
我好像我只看到了第二個例子。這僅僅是爲了可讀性嗎?或者有這個好理由嗎?