iOS Development-Phoenix drop-down brush, how the dropdown table shows the view below it is not the background (resolved)

Source: Internet
Author: User

Ideas:

1. By listening to the Y-value of the Contentoffset property in the Scrolldidscroll proxy method, determine whether it is a pull-down or pull-up

2. Required third-party framework sdprogress to implement a pull-round pie fill

3. When the pie is filled with its properties Progress=1, the sdorgress is hidden (the original code is removed from the parent view, it is not good to operate after removal), and the table frame, The ORGINE.Y value is set to a certain height, and the table maintains a certain distance from the top of the controller to show the animation

4. When the pie disappears, create a uiimageview and start the animation

5. Simulate loading the data (get a delay or turn on the sub-thread for a few seconds), remove the Uiiamgeview, and load the frame with the completed table to a height of 0;



Difficulty: How to realize the uncovering layer

UIView * Bgview =[[UIView alloc]initwithframe:self.view.frame];

Bgview.backgrundcolor = [Uicolor Redcolor];

[Self.view Addsubview:bgview];


UITableView * table = [[UITableView alloc]initwithframe:self.view.frame];

[Self.view addsubview:table];

Table.backgrundcolor = [Uicolor clearcolor];//the background color of the table to be transparent



iOS Development-Phoenix drop-down brush, how the dropdown table shows the view below it is not the background (resolved)

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.