Once upon a time, I have been the pit, in order to prevent the next to continue to be their own pit, I decided! In every place I can see, write the question again!!!
Method One:
First step: [Self.collectionview registernib:[uinib nibwithnibname:@ "Qglsharebtncell" Bundle:nil] forcellwithreuseidentifier:@ "Qglsharebtncell"]; Step two: Qglsharebtncell *cell = [CollectionView dequeuereusablecellwithreuseidentifier:@ "Qglsharebtncell" Forindexpath:indexpath];
Method Two:
Qglimgrouplistcell *cell = (Qglimgrouplistcell *) [TableView dequeuereusablecellwithidentifier:cellidentifier]; if (cell = = nil) {cell= (Qglimgrouplistcell *) [[[NSBundle Mainbundle] loadnibnamed:@ "Qglimgrouplistcell" owner:s Elf Options:nil] Lastobject]; }
- -! More pit is, incredibly forget to give Xib set identifier ...
IOS two ways to initialize a cell using Xib