查看Apple示例代码iPhoneCoreDataRecipes
,我对下面的代码段有一个疑问RecipeDetailViewController.m
:
case TYPE_SECTION:
nextViewController = [[TypeSelectionViewController alloc]
initWithStyle:UITableViewStyleGrouped];
((TypeSelectionViewController *)nextViewController).recipe = recipe;
break;
Run Code Online (Sandbox Code Playgroud)
在这一行中((TypeSelectionViewController *)nextViewController).recipe = recipe
,我理解内括号是将视图控制器强制转换为a TypeSelectionViewController
,但外括号是做什么的?