我有一个profileviewcontroller,其中这些图像视图主要是为了获取配置文件图片。但是在我的profileviewController.m开头,它声明了“未知类型名'PFImageView';你的意思是'UIImageview'?”以下行:ARC语义问题:“UIImageView中没有可见的@interface”和PFImageView语义问题
@property (strong, nonatomic) PFImageView *imageUser;
我得到如果用户增加他的个人资料PIC完全相同的一个:
-(void)addProfilePic
{
//---------------------------------------------------------------------------------------------------------------------------------------------
imageUser = [[PFImageView alloc] initWithFrame:CGRectMake(([UIScreen mainScreen].bounds.size.width-100)/2, 50, 100, 100)];
我不想一定改变的UIImageView想这可能弄乱代码中的其他内容,所以想澄清一下。另外,我有一个ARC语义问题,涉及到“UIImageView没有可见的@interface”声明选择器'setFile。'“和”UIImageView没有可见的@interface“声明选择器'loadInBackground。'”这是我的要求个人资料图片:
-(void)getProfilePicture
{
PFUser *user = [PFUser currentUser];
NSLog(@"file--%@",[user objectForKey:PF_USER_PICTURE]);
userName = user[PF_USER_USERNAME];
status = user[PF_USER_STATUS];
if ([user objectForKey:PF_USER_PICTURE]) {
[imageUser setFile:[user objectForKey:PF_USER_PICTURE]];
[imageUser loadInBackground];
}
else{
imageUser.image = [UIImage imageNamed:@"[email protected]"];
}
// fieldName.text = user[PF_USER_FULLNAME];
}
帮助非常感谢,谢谢你的时间家伙。
具有u进口所需的头文件的头文件? –
感谢您的帮助,欣赏它,是的,它的固定现在我对我的下一个错误 – Gavin