Int {     return 5    }"/>

Splitflap 分裂翻转效果

加入收藏
已有 7 人收藏

介绍:
    使用方法:

    import Splitflap

    let splitflapView = Splitflap(frame: CGRectMake(0, 0, 370, 53))

    splitflapView.datasource = self

    // Set the text to display by animating the flaps

    splitflapView.setText("Hello", animated: true)

    // MARK: - Splitflap DataSource Methods

    // Defines the number of flaps that will be used to display the text

    func numberOfFlapsInSplitflap(splitflap: Splitflap) -> Int {

     return 5

    }

测试环境:
  [Code4App]编译测试
效果图:
  • iOS / iPhone / iPad 使用方法:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;import Splitflap<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;let splitflapView        = Splitflap(frame: CGRectMake(0, 0, 370, 53))<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;splitflapView.datasource = self<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;// Set the text to display by animating the flaps<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;splitflapView.setText("Hello", animated: true)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;// MARK: - Splitflap DataSource Methods<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;// Defines the number of flaps that will be used to display the text<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;func numberOfFlapsInSplitflap(splitflap: Splitflap) -> Int {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;  return 5<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;}
代码评论:
登录后方可评论

  
  • 暂无评论