ios--Development Tips (continuous update)

Source: Internet
Author: User

 //Blur effectUiblureffect *effect =[Uiblureffect Effectwithstyle:uiblureffectstyledark]; Uivisualeffectview*test =[[Uivisualeffectview alloc] initwitheffect:effect]; Test.frame=Self.view.bounds; Test.alpha=0; [Self.view Addsubview:test];_mytext=test; UISlider*slidel = [[UISlider alloc]initwithframe:cgrectmake ( -, -, $, -)]; Slidel.backgroundcolor=[Uicolor Purplecolor]; Slidel.value=0; Slidel.maximumvalue=1.0; Slidel.minimumvalue=0.0;    [Self.view Addsubview:slidel]; Slidel.enabled=YES;    [Slidel addtarget:self Action: @selector (act:) forcontrolevents:uicontroleventvaluechanged]; - (void) Act: (UISlider *) slider{_mytext.alpha=Slider.value; }

// hide the phone's status bar -(BOOL) prefersstatusbarhidden    {return  YES;}

// don't let the system help us to adjust the view of ScrollView and its subclasses down

// The status bar displays the network request prompt    [UIApplication sharedapplication].networkactivityindicatorvisible = YES;         // The window is displayed on the outermost side.    Delegate ] [window] addSubview:self.view]    ;

 // cell height -(cgfloat) TableView: ( UITableView *) TableView Heightforrowatindexpath: (Nsindexpath *) indexpath{NSString 
    *string  = Self.lrcarr[indexpath.row]; CGRect frame  = [string  boundingrectwithsize:cgsizemake ([UIScreen Mainscreen].bounds.size.width, 10000 ) Options: ( Nsstringdrawinguseslinefragmentorigin) attributes:[nsdictionary Dictionarywithobject:[uifont systemFontOfSize:< Span style= "color: #800080;"        >17   return   Frame.size.height; }
// to import the MRC class in the ARC Project  we selected project, select Project in targets, then check build phases-> add tag after class imported-  Fno-objc-arc// the classpath for importing arc in the MRC project is the same as above, with the tag-fobjc-arc after the class

ios--Development Tips (continuous update)

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.