小编ads*_*dlf的帖子

iOS:从子类中的超类覆盖setter属性

我需要在子类中覆盖超类的setter

超类:

界面公众:

 @property (weak, nonatomic) UIView *mediaView;
Run Code Online (Sandbox Code Playgroud)

执行:

 - (void)setMediaView:(UIView *)mediaView
{
 // some code
}
Run Code Online (Sandbox Code Playgroud)

亚纲:

执行:

 - (void)setMediaView:(UIView *)mediaView
{
 // some code
 _mediaView = mediaView; --- ERROR: Use of undeclared identifier '_mediaView'
 // some code 
}
Run Code Online (Sandbox Code Playgroud)

我该如何解决?我需要直接设置这个属性

inheritance subclass objective-c superclass ios

2
推荐指数
1
解决办法
1016
查看次数

iOS:如何在itunesconnect中将Apple Hosted内容上传到应用内购买

我有非消费品购买,并希望与Apple托管.

它就像一本书,包含图像和JSON管理.我该如何上传?

itunesconnect in-app-purchase ios application-loader iap-hosted-content

1
推荐指数
1
解决办法
1780
查看次数