JSON

源码推荐(7.13):将Json格式化输出为模型的属性,加载动画 XHAmazingLoading

字号+ 作者:H5之家 来源:H5之家 2015-10-10 16:36 我要评论( )

- CocoaChina 开发讨论区 最热的iOS开发论坛| 最热的Mac开发论坛 | 最热的iPhone开发论坛 | 最热的iPad开发论坛

将Json格式化输出为模型的属性(作者:EnjoySR)

写在之前的注意

怎么安装:

怎么使用:

-0.2

-0.3

使用:

#import "XHAmazingLoadingView.h" XHAmazingLoadingView *amazingLoadingView = [[XHAmazingLoadingView alloc] initWithType:XHAmazingLoadingAnimationTypeMusic]; amazingLoadingView.loadingTintColor = [UIColor redColor]; amazingLoadingView.backgroundTintColor = [UIColor whiteColor]; amazingLoadingView.frame = self.view.bounds; [self.view addSubview:amazingLoadingView]; [amazingLoadingView startAnimating]; loading data after that call stopAnimating method.

测试环境:Xcode 6.2,iOS 6.0以上

加载动画 XHAmazingLoading

一个支持图文混排的ActionSheet(作者:yixiang1989)

关于该项目讲解的blog地址:

UIActionSheet是iOS提供给我们开发者的底部弹出菜单控件,一般用于菜单选择、操作确认、删除确认等功能。

IOS官方提供的以下方式对UIActionView进行实例化:

- (instancetype)initWithTitle:(NSString *)title delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...);

从这个api我们可以看出,我们只能设置文本标题,包括destructiveButtonTitle、cancelButtonTitle和otherButtonTitles,官方提供的该控件并不支持图文混排。但有的时候,交互提给我们的需求又需要我们的ActionSheet具有图文混排的效果,那就需要我们自己仿造系统自带的ActionSheet,完成该需求。

测试环境:Xcode 6.2,iOS 6.0以上

一个支持图文混排的ActionSheet

GWLCustomPiker-自定义外观的pikcerView

自定义外观的pickerView,使用方法和UIPikcerView基本一致

测试环境:Xcode 6.2,iOS 6.0以上

GWLCustomPiker-自定义外观的pikcerView

GWLCustomSlider 自定义slider

自定义slider,用于选择一个区间值

测试环境:Xcode 6.2,iOS 6.0以上

GWLCustomSlider 自定义slider

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • php CI 实战教程:[5]用curl获取json并解析

    php CI 实战教程:[5]用curl获取json并解析

    2016-02-26 17:00

  •  JSON入门级学习总结-JSON数据结构

    JSON入门级学习总结-JSON数据结构

    2016-02-25 11:05

  • Android解析Json速度最快的库:json

    Android解析Json速度最快的库:json

    2016-02-13 18:00

  • JavaScript转换与解析JSON方法实例详解第1/2页

    JavaScript转换与解析JSON方法实例详解第1/2页

    2016-02-10 21:25

网友点评
>