1, in the Viewcontroller Display 7 button, the title is "Nth Question", click the button after the request to jump to a new page, and then continue to achieve the following other topics content; 2. Add a Text Field, a Button, and a Label to the interface. Required to enter content in TextField, click on the button to display the same content on the label; 3, requires in the interface every 0.1 seconds in a random position to add a Label (background color arbitrary, size arbitrary), while every 5 seconds to clear the screen once; 4, the use for the loop statement, in the interface display 9 pictures, the picture size is the same, a row has three, altogether three lines fills the screen; 5, every 1 seconds in the interface random position to add a Button, its title shows himself is the first; 6, create a segmented Control has 3 titles, namely "Red", "green", "blue". Requires that the initial default value is "Blue" is selected, and then click on the corresponding segment when the color of the control to the corresponding color; 7. Add 2 buttons, 1 chrysanthemums in one page (style is arbitrary, default still does not turn). Require click on a button to control the turn of the Chrysanthemum and do not turn * * Uiactivityindicatorview *juh-(void) Viewdidload { [Super Viewdidload]; Self.view.backgroundColor = [Uicolor Whitecolor]; Initializing a Daisy Control Self.juhua = [[Uiactivityindicatorview alloc] init]; Set the style of the chrysanthemum (large chrysanthemum, small chrysanthemum, small gray chrysanthemum) Self.juhua.activityIndicatorViewStyle = Uiactivityindicatorviewstylewhitelarge; Setting the Chrysanthemum footprint (actual chrysanthemum size cannot be modified) Self.juhua.frame = CGRectMake (100, 100, 100, 100); Set the Chrysanthemum color (note not tintcolor) Self.juhua.color = [Uicolor Cyancolor]; Add chrysanthemums to the screen [Self.view AddSubview:self.juhua]; Add a UIButton button UIButton *button = [[UIButton alloc] init]; Button.frame = CGRectMake (0, 20, 100, 50); [Button settitle:@ "OK" forstate:uicontrolstatenormal]; [Button Settitlecolor:[uicolor Cyancolor]forstate:uicontrolstatenormal]; [Button addtarget:self action: @selector (Juhuazhuan) forcontrolevents:uicontroleventtouchupinside]; [Self.view Addsubview:button]; } -(void) Juhuazhuan { BOOL isanimating = [Self.juhua isanimating]; isanimating = = [Self.juhua stopanimating]: [Self.juhua startanimating]; if (isanimating) { [Self.juhua stopanimating]; } else { [Self.juhua startanimating]; } } @end |