//
Viewcontroller.m
ui- gesture and control exercises
//
Created by Jzq_mac on 15/7/24.
Copyright (c) year 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:@"Headlines1.jpg "],[UIImageImagenamed:@"Entertainment1.jpg "],[UIImageImagenamed:@"Technology1.jpg "],[UIImageImagenamed:@"Wealth1.jpg "],[UIImageImagenamed:@"Military1.jpg "],[UIImageImagenamed:@"Satin1.jpg "]];
image1 = [[uiimageviewalloc]initwithframe: [uiscreen Mainscreen]. Bounds];
Image1. Alpha =0.3;
[self. Viewaddsubview:image1];
label = [[ uilabel alloc" initwithframe: cgrectmake ( 60 300 250 50
label. text =@"
Use of ios-ui-gestures and controls (segment switch slider)