【文件属性】:
文件名称:MESegmentedControl:增强的UISegmentedControl,允许将徽章编号分配给细分
文件大小:110KB
文件格式:ZIP
更新时间:2021-05-16 17:19:04
Objective-C
介绍
MESegmentedControl是增强的UISegmentedControl,它使您可以在控件的每个段上设置徽章编号,如下所示:
安装
将以下文件从MESegmentedControl目录复制到您的项目中。 将它们链接到您的目标。
MESegmentedControl.h
MESegmentedControl.m
CustomBadge.h
CustomBadge.m
MESegmentedControl应该使用ARC,但CustomBadge不应该使用。 因此,如果您的项目确实使用ARC,请在目标中为-fno-objc-arc源设置编译器标志-fno-objc-arc 。 如果您的项目不使用ARC,请在目标中为MESegmentedControl.m源设置编译器标志-fobjc-arc 。 请参阅图示说明。
用法
在您的应用程序中,用MESegmentedContro
【文件预览】:
MESegmentedControl-master
----MESegmentedControl.xcodeproj()
--------project.pbxproj(13KB)
----SampleScreenShot.png(94KB)
----MESegmentedControl()
--------main.m(363B)
--------MEViewController.m(1KB)
--------MESegmentedControl.h(1KB)
--------MEViewController.h(351B)
--------CustomBadge.m(9KB)
--------MESegmentedControl.m(4KB)
--------MESegmentedControl-Prefix.pch(339B)
--------MEAppDelegate.h(304B)
--------MEAppDelegate.m(2KB)
--------en.lproj()
--------MESegmentedControl-Info.plist(1KB)
--------CustomBadge.h(2KB)
----.gitignore(73B)
----README.md(3KB)