Lan Yi iOS Comprehensive quiz

Source: Internet
Author: User

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

 
Share to:

Lan Yi iOS Comprehensive quiz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.