Possible Duplicate:
Caret in objective C
我最近遇到了几行代码,发现它在这样的对象前面带有^
符号:typedef void (^AnimatedViewBlock)(CGContextRef context, CGRect rect, CFTimeInterval totalTime, CFTimeInterval deltaTime); @interface AnimatedView : UIView
谁能用一个简单的例子来解释它。
Possible Duplicate:
Caret in objective C
我最近遇到了几行代码,发现它在这样的对象前面带有^
符号:typedef void (^AnimatedViewBlock)(CGContextRef context, CGRect rect, CFTimeInterval totalTime, CFTimeInterval deltaTime); @interface AnimatedView : UIView
谁能用一个简单的例子来解释它。
最佳答案
它表示一个块对象。
阅读Apple的文档here。
关于iphone - objective-c 中以^开头的对象是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9176484/
相关文章:
ios - 应用程序:didRegisterForRemoteNotificationsWithDeviceToken: not called ios 10. 3.2
javascript - 单击一个 Div 下拉功能在 iPhone 上不起作用
jquery - 什么是 jQuery Mobile?它能够为 Android 创建游戏吗?
iphone - 如何用CCSpriteBatchNode替换CCSpriteSheet
iphone - 从自己的应用程序中查看 PDF 和 Office 文档?
iphone - 警告 : control reaches end of non-void function - iPhone