"iOS Dev-62" Custom cell making Group purchase page, top picture carousel, bottom simulation load more features, core is practice agent mode

Source: Internet
Author: User

(1) Effect



(2) Case source code free download

Group Purchase page +ios source code + head AD Carousel + Bottom Load more


(3) Supplement

In the source code, there is a flaw: because it is single-threaded, so when you drag the page up and down, the picture carousel above will stop. So we need to balance the solution and add the timer to the current runloop.

That is, add a line of code to the Playon method in WPTGHEADERVIEW.M:

-(void) playon{    timer=[nstimer scheduledtimerwithtimeinterval:2.0 target:self selector: @selector (nextimage) Userinfo:nil Repeats:yes];    Allow to drag up and down, the picture can still be carousel, that is, the timer can still work, because it is single-threaded, so you need to add the timer to the current Runloop    [[Nsrunloop Currentrunloop]addtimer:timer Formode:nsrunloopcommonmodes];}

(4) Summarize the points of knowledge:

Skilled use of tableview, including reloading data.

--skilled use of custom cells using Xib.

--MVC Code Classification is clear, code encapsulation and other intermediate requirements.

--Some scattered knowledge, the use of ScrollView and Protocol methods in the film carousel effect; load more time to display and hide the effect.


"iOS Dev-62" Custom cell making Group purchase page, top picture carousel, bottom simulation load more features, core is practice agent mode

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.