我对这个问题感到非常困惑,找不到任何匹配的问题。
如果我运行pip3 show setuptools或pip2 list,两者都表示setuptools 40.8.0已安装,但是当我尝试从本地源代码目录在本地安装模块时,我收到错误消息No matching distribution found for setuptools>=40.8.0
由于访问和防火墙限制,我必须将该模块安装到我的主目录中并使用系统上已安装的内容。
这适用于该模块的先前版本,但现在失败了。
注意:对于那些试图理解这一点的人来说,我想出了我的困惑的根源.在.h,我有:
...
@interface myClass : parentClass {
className *variableName:
}
@property (strong, nonatomic) className *variableName;
...
Run Code Online (Sandbox Code Playgroud)
这导致self.variableName和_variableName是.m中的两个不同变量.我需要的是:
...
@interface myClass : parentClass {
className *_variableName:
}
@property (strong, nonatomic) className *variableName;
...
Run Code Online (Sandbox Code Playgroud)
然后,在类'.m中,self.variableName和_variableName是等价的
在全新的Xcode的4.5+,与ARC,针对iOS 5.0及项目,有一个明显的优势(运行时的效率,速度等)使用_variableName了self.variableName与旧式@synthesize variableName?
我的理解是Xcode 4.5+将创建一个_variableName相当于的默认访问器,self.variableName并且唯一不使用的原因@synthesize variableName是为了避免iVars和传入变量之间的混淆,对吗?
对我来说,只是使用self.variableName访问iVar似乎是最直接和明确的,你正在寻找哪个变量.除了打字_与self.,使用是否有优势_variableName?