1 Star 0 Fork 0

popor / PoporUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

MyBox

PoporUI

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

PoporUI is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'PoporUI'

兼容iOSmacOS系统
~~BlockView : iOS8以前的UIAlertViewUIActionSheet采用block模式~~
IToast : 整理了IToastimport IToastPTool.h 使用AlertToastTitle(title),弹出键盘弹出的时候IToast弹出高度自动上移。
ProgressView : 使用了 https://github.com/gin0606插件。
Response : 根据UIResponder传递事件。
Tool : 包含磁盘空间、设备使用权限、保存图片、APP版本号等信息。
UIButton : 主要是UIButtonLayoutCustom,通过block方式自定义UIButton图片文字frame
UIDeviceScreen : 获取是否是iPhoneX设备接口。
UIImage : 根据UIColorNSStringUIFontUIImageUIView生成图片,渐变色图片,
-   更改UIImage填充色和背景色,保存图片到指定路径,读取绝对路径图片,压缩图片(指定最大容量、根据size压缩)。
UILabel : 根据UIStringUIFont或者NSAttributedString计算size
-   UILabelInsetsUILabelPhone
UINavigationController : 根据Classindex移除某个UIViewController
UIScrollView : 滑动到最底部,包含 UIScrollView VC支持侧滑。
UITableView : UITableViewCell 设定分割线inset
-   侧滑VC的时候,UITableViewCell跟随滑动渐变色。
UITextField : UIInsetsTextFieldUITextField最大输入文字,可以使用RAC替换。
UITextView : UIPasteImageTextView
-   UIPlaceHolderTextView
-   UITextView (MaxLength)
-   UITextView (Size)
UIView : UIView (Extension)
UIViewController : UIViewController (AC: iPad弹出UIAlertControl sheet 模式的时候不崩溃,设定默认popPresenter.sourceRect)
-   设定导航栏按钮,
-   导航栏是否隐藏BOOL
-   UIViewController (TapEndEdit: 点击空白处关闭键盘,键盘高度变化接口)

0.0.46

UINavigationController 增加静态方法 statusBarHeight

1.11

UIButton+pLayoutCustom: 取消该class方法. 至少在iOS13的虚拟机无法正确运行,所以取消这里的方法了.(不适用category, 使用单独定义的UIButton可以正常运行)

1.13

更新UILabel+pFormat, UITextField+pFormat

1.15 适配swift: int > NSInteger, float > CGFloat

1.16 摘自:https://github.com/wode0weiyi/MethodChaining 增加了UIAlertController的链式编程.

1.18 更新UIButton的UIButton+pUIEdgeInsets.

1.19 UIButton+pUIEdgeInsets 可以处理NSAttributedString.

1.22 适配xcode12, ios和macOS兼容的问题.

1.26 IToast 不再使用宏, 改为inline的c函数, 可以检查参数是否合法, 有点类似swift函数

1.31 增加了UITableView+pSafe方法, 预防同一个CellID应对多个Cell.

1.33 适配pod验证

1.34 view生成截图函数增加了参数, 之前的默认NO.

  • (UIImage *)imageFromView:(UIView *)view afterScreenUpdates:(BOOL)afterScreenUpdates;

1.35 优化alertToast 参数

1.36 更新UIImage+create方法, 默认scale为1, 防止图片太大消耗内存. 背景色默认不设置.

1.37 UIScrollView 删除有问题的代码, 影响稳定.

1.38 更新吐司逻辑: 延迟控制时间变为0.05秒, 并且可控制. 不再是0.5秒,延迟太高了. hide之后执行移除操作.

Author

popor, 908891024@qq.com

License

PoporUI is available under the MIT license. See the LICENSE file for more info.

Copyright (c) 2018 popor <908891024@qq.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Objective-C 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/popor/PoporUI.git
git@gitee.com:popor/PoporUI.git
popor
PoporUI
PoporUI
master

搜索帮助