开发者

iPhone : Unable to create Object of File

i am trying to call method of one file from another file.

For this, I am creating another files object and for that importing .h file.

While importing the file I a开发者_开发问答m only able to see .h file where for the other files I can see all files(.h,.m,.xib).

#import "FirstView.h"

FirstView *first = [FirstView alloc] init];

But It does not allowing me to create object of that file and even it is not showing any error or warning.

what should I do ?


You are missing a bracket in your code:

#import "FirstView.h"

FirstView *first = [[FirstView alloc] init];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜