#在蓝懿学习iOS的日子 #day16

Source: Internet
Author: User

Today is mainly the morning

First, told the arrangement of the homework

Second, the bar in the case of the picture is shown in the situation of the move down the improvement method

@property (weak, nonatomic) iboutlet uiscrollview *mysv;

-(void) viewdidload {

[Super viewdidload];

uiimageview *iv = [[uiimageview alloc]initwithframe:self. Mysv. Bounds];

iv. image = [UIImage imagenamed:@ "11.jpg"];

[self. Mysv addsubview: iv];

self. Automaticallyadjustsscrollviewinsets = NO;

}

-(void) Viewwillappear: (BOOL) animated{

NSLog(@ " page will be displayed ");

}

-(void) viewwilllayoutsubviews{

//

//}

ways to let internal controls control the layout

-(void) viewdidlayoutsubviews{

[Self.mysv setcontentinset:uiedgeinsetsmake (0, 0, 0, 0)];

//

//}

-(void) Viewdidappear: (BOOL) animated{

NSLog(@ " page already displayed ");

}

The main task of the afternoon is to test

The interface is displayed in the page 10 lines each line shows the 1th question 2nd .... Question 10th (5)

1. Add a text input box in the interface and a label and a button text box can only enter a number and limit the user can not enter 8, click on the button to display the contents of the text box in the label . (Ten)

2. Add a scrollview in the interface, the inside full screen display 5 pictures, run up to show is the third, the interface to add a pagecontrol control switch picture (s)

3. In the left and right side of the navigation bar, add a button to click the Left button when the console output "left" click on the right button when the console output "right"(5)

4. Add a button button's title at random positions in the interface every 1 seconds to show that you are the first number

5. Add a slider and Progressview drag slider in the interface to let Progressview follow the move (5)

6. Add a Segmentedcontrol inside the interface display Andy Lau, Jacky Cheung, Dawn, Aaron Kwok, click on any one of the console output this button corresponding to the name (5)

7. Add a picture at random location in the interface every 0.1 seconds no limit to clear the screen every 5 Seconds (Ten)

8. Display 9 different picture sizes in the interface the same line has three fills the screen (5)

9. Add a picture to turn the picture around the edge of the screen

10. There are two pages the first page has a label and a button click button to jump to the second page The second page has two buttons the title is a and b click the button to return to the previous page of the first page of the label is displayed a or B point a button back display a point B button display B(15)

#在蓝懿学习iOS的日子 #day16

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.