1. Use the command "-fno-objc-arc" to set an. m file in the ARC project separately to MRC encoding compilation
Step: ProjectName, Target, Build phases, complier flags,
2, prohibit the tableview of the header of the suspension, add the following code can be
Disable cell header suspension
-(void) Scrollviewdidscroll: (Uiscrollview *) ScrollView {
cgfloat sectionheaderheight = ;
if (ScrollView. Contentoffset. Y<=sectionheaderheight&&scrollview. Contentoffset. y>=0) {
ScrollView. Contentinset = uiedgeinsetsmake (-scrollview. Contentoffset. y, 0, 0, 0);
} Else if (scrollView. Contentoffset. y>=sectionheaderheight) {
ScrollView. Contentinset = uiedgeinsetsmake (-sectionheaderheight, 0, 0, 0);
}
}
3. Print Font Library
Print Font Library
For (nsstring *familyname in [uifont Familynames]) {
NSLog(@ "Font familyname =%@", familyname); //* Output font family section name
For (nsstring *fontname in [uifont Fontnamesforfamilyname:familyname]) {
NSLog (@ "\t%@", FontName); //* Output font family section under Word name
}
}
4, solve the TableView cell does not welt, in the Cellforrowatindexpath agent method to add
Tableviewcell No Welt solution 2
if ([cell respondstoselector:@selector (setseparatorinset:)]) {
[Cell Setseparatorinset:uiedgeinsetszero];
}
IOS Knowledge points