(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