I have the method:
- (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section
{
return items.count;
}
What I do now is to copy the whole first line and then remove the words about the formal parameters. Is there a better way to copy the method name so that I can get tableView:numberOfRowsInSection:
quickly?
In Xcode 7.3 and above you can simply do the following:
Given a class ReportsListViewController
and the -tableView:numberOfRowsInSection:
method:
Place your cursor anywhere on a method name. Press Shift-Cmd-Ctrl-Option-c (All the modifiers) - This will place the following in your clipboard:
-[ReportsListViewController tableView:numberOfRowsInSection:]
Place your cursor anywhere on a method name. Press Shift-Cmd-Ctrl-c - This will place the following in your clipboard:
-tableView:numberOfRowsInSection:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With