一个优雅的动态幻灯片,可以展示任何您想要的内容,只需添加一张图片,一些文本,并选择一个动画,RGDynamicOnboard 会处理其余的工作。您可以通过多种方式自定义您的幻灯片,添加静态图片,从一个页面切换到另一个页面的图片,添加文本,选择字体和一些颜色,仅用 5 行代码,您就拥有了一个完全响应式的幻灯片!
将主文件导入您的 Xcode 项目或使用 Cocoapods 安装 pod。
self.mainSlideView = [[RGDynamicOnboard alloc] initFullscreenWithNumberOfSlides:3 andPageControl:YES inView:self.view];
[self.mainSlideView addImage:[UIImage imageNamed:@"firstImage"] andText:@"Just like magic, add two lines of code and that's it..." toPageNumber:0];
[self.mainSlideView applyAnimationNumber:0 toGoFromPage:0];
[self.mainSlideView addImage:[UIImage imageNamed:@"secondImage"] andText:@"With multiple animations and some more options!" toPageNumber:1];
[self.mainSlideView applyAnimationNumber:0 toGoFromPage:1];
[self.mainSlideView addImage:[UIImage imageNamed:@"thirdImage"] andText:@"And some more customization is coming!" toPageNumber:2];
[self.mainSlideView applyAnimationNumber:0 toGoFromPage:2];
添加静态图片、文本并自定义您的颜色。
git checkout -b feature-branch
)。git commit -am 'Added this feature'
)。git push origin feature-branch
)。Ramon Gilabert,倾情奉献! :)