Question

Dans xcode 3, je pouvais première Écrivez ma méthode dans l'implémentation (.m) dossier; ajoutant ensuite la même méthode à l'interface (.h) dossier. À ce stade, Xcode 3 a réalisé un code pour la méthode écrite dans .m dossier. Malheureusement, Xcode 4 ne complète pas mes méthodes comme Xcode 3 l'a fait. Quelqu'un d'autre a-t-il rencontré cela, et y a-t-il une option pour ce cas?

Un exemple:

Le fichier d'implémentation .m pourrait ressembler à ceci:

#import "Foundation, MyClass.h and stuff"

@implementation MyClass

-(void)mySampleMethod { NSLog(@"mySampleMethod"); }

@end

Le fichier d'interface .h pourrait ressembler à ceci:

#import "Foundation and stuff"

@interface MyClass : MySuperClass {

 }

-(void)myS /* in Xcode 3 the code completion would now pop up with the 'mySampleMethod' from the .m, in Xcode 4 this does not happen */ ampleMethod; /* So I either copy/paste, or write the method */

@end

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top