NSString *str = yes? @ "HHH": @ "yyy";
At the beginning of the picture folder hierarchy is not right, when you drag the picture into the right, at first there is no content, so the position is wrong
UITableView the top of the group mode has a blank
Time Date Blue bar
Calculate ImageView Length
NSString *dotalocationstring = @ "4/15 days in Hulunbeier";
CGFloat labelwidth = [dotalocationstring sizewithfont:kfontwithsize (one) constrainedtosize:cgsizemake (MAXFLOAT, 20)]. Width
Datelocationimageview =[[uiimageview Alloc]init];
[Self.contentview Addsubview:datelocationimageview];
[Datelocationimageview mas_makeconstraints:^ (Masconstraintmaker *make) {
Make.right.mas_equalTo (0);
Make.width.mas_equalTo (Labelwidth + 16); 132
Make.height.mas_equalTo (20);
Make.top.mas_equalTo (Self.contentview). Offset (12);
}];
UIImage * image = [UIImage imagenamed:@ "Recommended heat background"];
Uiedgeinsets insets = uiedgeinsetsmake (0, 10, 0, 0);
Specified as stretch mode, re-assigned after scaling
image = [Image resizableimagewithcapinsets:insets Resizingmode:uiimageresizingmodestretch];
Datelocationimageview.image = image;
Datalocationlabel = [UILabel hdf_labelwithtext:@ "4/15 days in Hulunbeier" Superview:datelocationimageview constraints:^ ( Masconstraintmaker *make) {
Make.left.mas_equalTo (8);
Make.centerY.mas_equalTo (Datelocationimageview);
}];
Datalocationlabel.font = [Uifont systemfontofsize:11];
Datalocationlabel.textcolor = [Uicolor Whitecolor];
--------
Reduce constraint precedence
The price is squeezed, lower the constraint priority, solve the problem
Price label
Pricelabel = [UILabel hdf_labelwithtext:@ "¥1000"
Textcolor:kassistorangecolor
Font:kfontwithsize (12)
SuperView:self.contentView
constraints:^ (Masconstraintmaker *make) {
Make.right.mas_equalTo (pretimelabel.mas_left). Offset (1);
Make.baseline.mas_equalTo (Pretimelabel);
}];
Title
Doctorprofessionrank = [UILabel hdf_labelwithtext:@ "title Safdsafasfasfsadfasfsafaaf"
Textcolor:kcolorwith16rgb (0x646464)
Font:kfontwithsize (12)
SuperView:self.contentView constraints:^ (Masconstraintmaker *make) {
Make.left.equalTo (Doctorname);
Make.top.equalTo (Doctorname.mas_bottom). Offset (5);
Make.right.equalTo (pricelabel.mas_left). Offset ( -15). Priority (750);
}];
------
The CollectionView cell method is not called because the CollectionView frame is not
_collectionview = [[Uicollectionview alloc]initwithframe:self.collectionviewcontainerview.bounds CollectionViewL Ayout:self.flowLayout]; Bouns can't get out.
_collectionview = [[Uicollectionview alloc]initwithframe:cgrectmake (0, 0, Screen_w, Self.collectionViewContainerView.width) CollectionViewLayout:self.flowLayout]; This will come out!!
------
View does not load up because the underscore variable does not call lazy loading
"Experts come", the day after tomorrow in Friday, to communicate with the team leader