//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)