在从书上学习iOS编程时,我注意到对于像- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
这样的长行代码,作者倾向于将其分成两行并通过冒号对齐两行。我如何在 Xcode4 中实现这一点?
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
最佳答案
您所要做的就是在两个部分之间按 Enter 键。 Xcode 会自动为您完成此操作(假设您正在编辑 Objective-C 文件)。
关于objective-c - 制作冒号 : align vertically in code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7688236/