同じクラスで定義されたmyarrayを使用するメソッドを作成しました。countを使用すると、常に0が返されます。使用する場合:
printf("%d", [myarray count]);
コンパイラは言う:
Format '%d' expetcs type 'int', but argument 2 has type 'NSUInteger'
なぜ?
同じクラスで定義されたmyarrayを使用するメソッドを作成しました。countを使用すると、常に0が返されます。使用する場合:
printf("%d", [myarray count]);
コンパイラは言う:
Format '%d' expetcs type 'int', but argument 2 has type 'NSUInteger'
なぜ?