Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的代码:
CGPoint *tp_1 = CGPointMake(160, 240);
给出“初始化中的类型不兼容”错误...这是为什么呢?
CGPointMake返回一个结构,而不是指向结构的指针。所以正确的代码是:
CGPointMake
CGPoint tp_1 = CGPointMake(160, 240);
看起来 CGPointMake 没有返回指针。