Auto create methods

Is is possible with appcode auto-generate a new method when call it?

So when i write

[myobject mynewmethod]


i can create a new method like

-(void)mynewmethod {};


thanks

0

Yes, you can. You can fix most of errors/warnings in your code by pressing alt+enter.

0
Avatar
Permanently deleted user

Yes.

Type the method as you said, then with the caret somewhere in the method call, hit Alt-Enter and choose to create a method (or a property).
This will insert the method declaration in the header, and put an empty implementation in the implementation section.

0

请先登录再写评论。