RFSegmentView

码农软件 · 软件分类 · 分段选择(Segment) · 2019-06-18 06:27:10

软件介绍

RFSegmentView 是一个仿照 iOS7 风格的分段控制器,简洁,实用。

加入RFSegmentView.h/m文件即可使用

float init_y = 0; 
     for (int i=0; i<10; i++) { 

         RFSegmentView* segmentView = [[RFSegmentView alloc] initWithFrame:CGRectMake(0, 10+init_y, kScreenWidth, 60) items:@[@"spring",@"summer",@"autumn",@"winnter"]]; 
         segmentView.tintColor = [self getRandomColor]; 
         segmentView.delegate = self; 
         [self.view addSubview:segmentView]; 
         init_y +=60; 
     } 
  
 delegate: 
 - (void)segmentViewSelectIndex:(NSInteger)index 
 { 
     NSLog(@"current index is %d",index); 
 }


本文地址:https://www.codercto.com/soft/d/8214.html

Blog Design Solutions

Blog Design Solutions

Richard Rutter、Andy Budd、Simon Collison、Chris J Davis、Michael Heilemann、Phil Sherry、David Powers、John Oxton / friendsofED / 2006-2-16 / USD 39.99

Blogging has moved rapidly from being a craze to become a core feature of the Internetfrom individuals sharing their thoughts with the world via online diaries, through fans talking about their favori......一起来看看 《Blog Design Solutions》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

MD5 加密
MD5 加密

MD5 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具