8
プロジェクトをARCを使用するように変換する場合、「switch case is in protected scope」とはどういう意味ですか?
ARCを使用するようにプロジェクトを変換する場合、「switch case is in protected scope」とはどういう意味ですか?Xcode 4の[編集]-> [リファクタリング]-> [Objective-C ARCに変換]を使用して、プロジェクトをARCを使用するように変換しています...発生するエラーの1つは、スイッチケース。 編集、これがコードです: エラーは「デフォルト」の場合にマークされます。 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @""; UITableViewCell *cell ; switch (tableView.tag) { case 1: CellIdentifier = @"CellAuthor"; cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; …