Skip to content

minggo620/iOSWelcomePage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

iOSWelcomePage

Support  Travis GitHub release ![Github All Releases](https://img.shields.io/badge/download-6M Total-green.svg) ###Using UIScrollerView in Storyboard to make a simple welcome page demo.  ###Thinking: 

  1. Choosing vertical sliding direction on UIScrollerView.  
  2. Adding your welcome picture on storyboard,they are equal width and height.  
  3. Setting the first picture heiht constraint when viewDidLoad: as the height of screen.  

###Step Processes

  1. Adding UIScrollView to VC, set fullscreen constraints. UIScrollView add a unique container UIView, this is the same with the Android ScrollerView.
    Then, XCode direct error reminder, this reminder that are not set in the sliding direction ScrollerView description, select the Quick treated as UIScrollerView add vertical and horizontal sliding restrictions, removal of errors reminder, the last time around and then slide restrictions can be deleted. Rapid processing as follows

  2. Set UIScrollerView slide paging effect, like the Android ViewPager slide over to the next half of the default View. Of course, you can also be set in code scrollerview.pageEnable = YES; the focus here reflects the little mouse can be done in IB hook on this one:

  3. Drag 5 UIImageView setting climb monospaced and margins. As shown below

  4. After you have set up, the spacing between the pictures still have to fine tune it, set the height constraint for the first image, as shown below:

  5. Set each UIImageView image constraint value, dragged height constraint of the first pictures of the VC, the important thing is to remove the constraints UIScrollerView sliding around.
  6. finally time to show results.

About

using UIScrollerView in Storyboard to make a simple welcome page demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published