IOS Knowledge points

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.