在UITableView.h中,在UITableView的接口声明中,有一个ivar struct _tableFlags.struct的成员都被定义为unsigned int,但每个成员的标题后面跟一个冒号,然后是一个数字.
struct {
unsigned int dataSourceNumberOfRowsInSection:1;
unsigned int dataSourceCellForRow:1;
Run Code Online (Sandbox Code Playgroud)
...
unsigned int longPressAutoscrollingActive:1;
unsigned int adjustsRowHeightsForSectionLocation:1;
unsigned int customSectionContentInsetSet:1;
} _tableFlags;
Run Code Online (Sandbox Code Playgroud)
Cocoa倾向于在其头文件中共同使用这种语法,但我不知道它的含义和功能是什么.冒号和成员名称后面的数字是什么意思?
我必须在我的cocoa应用程序的委托中实现什么方法,这样在启动时,它会打开一个url?(http/https,在这种情况下)我已经实现了url方案,我只需要知道如何让我的应用程序在url通知上打开.
更新:对不起,我不是很清楚.我的应用程序是一个支持https/http网址的浏览器,但只能在它已经运行时打开它们.在启动时,如何在我的应用中实现对开放网址的支持?