我在一些iPhone示例中看到,属性在变量前面使用了下划线_.有谁知道这意味着什么?或者它是如何工作的?
我正在使用的接口文件如下所示:
@interface MissionCell : UITableViewCell {
Mission *_mission;
UILabel *_missionName;
}
@property (nonatomic, retain) UILabel *missionName;
- (Mission *)mission;
Run Code Online (Sandbox Code Playgroud)
我不确定上面做了什么,但是当我尝试设置任务名称时:
aMission.missionName = missionName;
Run Code Online (Sandbox Code Playgroud)
我收到错误:
请求成员'missionName'的东西不是结构或联合
我注意到在使用故事板时在iOS 9上运行我的应用程序时,控制台中出现以下错误.我正在使用xCode7.这是我需要关注的吗?
-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] ** unhandled action -> <FBSSceneSnapshotAction: 0x176bfb20> {
handler = remote;
info = <BSSettings: 0x176a5d90> {
(1) = 5;
};
}
Run Code Online (Sandbox Code Playgroud) error-handling uistoryboard transition-coordinator ios9 xcode7
cocoa ×1
cocoa-touch ×1
ios9 ×1
objective-c ×1
syntax ×1
uistoryboard ×1
variables ×1
xcode7 ×1