標籤:
//
// ViewController.m
// UI-手勢及控制項練習
//
// Created by jzq_mac on 15/7/24.
// Copyright (c) 2015年 jzq_mac. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
{
UIImageView *image;
UIImageView *image1;
UILabel *label;
NSArray *colorList ;
NSArray *imgeList ;
UISlider *slider ;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[superviewDidLoad];
self.view.backgroundColor = [UIColorgrayColor];
colorList = @[[UIColorblueColor],[UIColorbrownColor],[UIColoryellowColor],[UIColorgrayColor],[UIColorblackColor],[UIColorpurpleColor],[UIColorwhiteColor],[UIColorcyanColor]];
imgeList = @[[UIImageimageNamed:@"頭條1.jpg"],[UIImageimageNamed:@"娛樂1.jpg"],[UIImageimageNamed:@"科技1.jpg"],[UIImageimageNamed:@"財經1.jpg"],[UIImageimageNamed:@"軍事1.jpg"],[UIImageimageNamed:@"段子1.jpg"]];
image1 = [[UIImageViewalloc]initWithFrame:[UIScreenmainScreen].bounds];
image1.alpha =0.3;
[self.viewaddSubview:image1];
label = [[UILabelalloc]initWithFrame:CGRectMake(60,300, 250, 50)];
label.text =@"
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。
iOS—UI-手勢及控制項(segment switch slider)的使用