开发者

iPhone : Unable to create Object of File

开发者 https://www.devze.com 2023-03-20 22:00 出处:网络
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.

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

精彩评论

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

关注公众号