摘要:
1.UISegmentControl 1)先创建一个数组用来存放标题 NSArray *array = @[@"1",@"2",@"3",nil]; UISegmentedControl *segmented = [[UISegmentedControl alloc] initWithItems:a 阅读全文
摘要:
1.//当手指在屏幕上滑动时 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint previousPoint = [touch 阅读全文
摘要:
1.首先在自定义的视图中重写layoutSubviews方法 - (void)layoutSubviews{ UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation ;// 阅读全文