Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

juvelins/YPBanner

Repository files navigation

YPBanner

Just a few lines of code, you can easily add banner to your app. 

##Dependency SDWebImage ##How to install? Add YPBanner directory to your project and import "YPBannerView.h" ##How to use? =======YPBannerView======= //Banner item init YPBannerItem *item_01 = [[YPBannerItem alloc] initWithImage:[UIImage imageNamed:@"placehold.png"] data:nil]; YPBannerItem *item_02 = [[YPBannerItem alloc] initWithUrl:@"web_url" data:nil andPlaceholder:[UIImage imageNamed:@"placehold.png"]]; ...... //default animation _bannerView = [[YPBannerView alloc] initWithFrame:parentView.bounds andYPBannerItems:@[item_01,item_02...]];
//set animation type and duration _bannerView= [[YPBannerView alloc] initWithFrame:parentView.bounds YPBannerItems:@[item_01,item_02...] animationType:YPBannerAnimationTypeCube andTimeDuration:1.5f];

About

Just a few lines of code, you can easily add banner to your app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 99.7%
  • Ruby 0.3%

AltStyle によって変換されたページ (->オリジナル) /