1.scrollView Zoom
#import "ViewController.h"@interfaceViewcontroller () <UIScrollViewDelegate>@property (Weak, nonatomic) Iboutlet Uiscrollview*ScrollView, @property (weak, nonatomic) Iboutlet Uiimageview*MView;@end@implementationViewcontroller- (void) viewdidload {[Super viewdidload]; //1. Set the content sizeSelf.scrollview.contentsize=self.mView.frame.size; //2. Setting up the agentSelf.scrollview.Delegate=Self ; //3. Set the maximum and minimum magnification--the setting will not have a zoom effectself.scrollview.maximumzoomscale=2.0; Self.scrollView.minimumZoomScale=0.2; }-(UIView *) Viewforzoominginscrollview: (Uiscrollview *) scrollview{returnSelf.mview;}@end2. Let the UI main thread loop the timer
Self.timer =[nstimer scheduledtimerwithtimeinterval:2.0 target:self selector: @selector (method) Userinfo:nil Repeats:yes]; // let the UI main thread loop the timer [[Nsrunloop Currentrunloop] AddTimer:self.timer formode:nsrunloopcommonmodes];
3. Use the lable control to make a circle
Label.frame = CGRectMake (00); - ; // Label.layer.maskstobounds=yes; Label.clipstobounds = YES;
iOS Trivia record