[英]How to combine nsobject file and nscollectionviewcontroller to viewcontroller in xcode or nscollectionviewcontroller to viewcontroller only
I am download and use this Instagram feed here . 我在这里下载并使用此Instagram提要 。 But i don't want switch more view.
但我不想切换更多视图。 In my app touch a instagram feed button then switch a view and then i am doing some view appearance so i want to combine SBInstagramController and SBInstagramCollectionViewController (files in that link) to a ViewController.
在我的应用程序中,触摸一个instagram feed按钮,然后切换视图,然后执行某种视图外观,因此我想将SBInstagramController和SBInstagramCollectionViewController(该链接中的文件)组合到ViewController中。
If i combine 2 files it's show nearly 10 more error. 如果我合并2个文件,则会显示将近10个错误。 If i include @property (nonatomic, retain) UICollectionView *collectionView;
如果我包括@property(非原子性,保留),则UICollectionView * collectionView; in viewcontroller.h file there is no error and single collectionview function called it's show empty page with navigation
在viewcontroller.h文件中没有错误,只有一个collectionview函数被调用,它显示带有导航的空页面
if 2 file can't combine then at least uicollectionview move into uiviewcontroller 如果2个文件无法合并,则至少将uicollectionview移入uiviewcontroller
Thanks in Advance :) 提前致谢 :)
Combination of two file worked for me and only one error occurred(the Difficult one). 两个文件的组合对我有用,并且只发生了一个错误(困难的一个)。 Just i am create a new collection view in xib and create a IBOutlet for that.
我只是在xib中创建一个新的集合视图,并为此创建一个IBOutlet。 That's it worked.. !!!!!
就是这样.. !!!!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.