我一直在使用Parse SDK,我遵循了quickstep指南.当我尝试运行时,我得到了这8个错误.任何想法为什么?它看起来与Parse的Facebook部分有关,我没有使用它.
Undefined symbols for architecture armv7:
"_FBTokenInformationTokenKey", referenced from:
-[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationUserFBIDKey", referenced from:
-[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed …Run Code Online (Sandbox Code Playgroud) 我正在使用单元格宽度为67的UICollectionView,现在我正在使用流布局.
我连续有3个细胞,细胞之间有30px的空间.如何减少距离,以便我可以连续安装四个细胞?这种方法与它有关吗?
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section
{
return UIEdgeInsetsMake(10, 10, 10, 10);
}
Run Code Online (Sandbox Code Playgroud) objective-c storyboard ios uicollectionview uicollectionviewflowlayout
如何使用"3个对象在一个"中创建一个我想要的数组是这样的:
NSArray *array = [[NSArray alloc]initWithObjects:[UIImage , NSString , BOOL], [UIImage , NSString , BOOL], nil];
Run Code Online (Sandbox Code Playgroud)
有没有办法做到这一点,以便索引处的每个对象都可以有一个图像,字符串和布尔值?
我尝试使用此代码将图像视图添加到UIView:
for (int i = 0; i <numberOfImages; i++) {
UIImageView *image = [UIImageView alloc]initWithFrame:CGRectMake(40, 40, 40, 40)];
image.image = [images objectAtIndex:i];
[self.view addSubview:image];
}
Run Code Online (Sandbox Code Playgroud)
这有效,但问题是我希望在添加每个图像之前有5秒的延迟,而是将它们全部添加到同一时间.有人可以帮帮我吗?谢谢.
例:
5 seconds = one image on screen
10 seconds = two images on screen
15 seconds = three images on screen
Run Code Online (Sandbox Code Playgroud)