自己 撸了一个 ios 的糗百 ,调用 了 糗百官方的 api ,总是 运行报错
断点 打印 就是不理解为啥 报错
开放接口
#define LastestURLString(count,page) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/list/latest?count=%d&page=%d",count,page] #define ImageURLString(count,page) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/list/images?count=%d&page=%d",count,page] #define SuggestURLString(count,page) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/list/suggest?count=%d&page=%d",count,page] #define DayURLString(count,page) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/list/day?count=%d&page=%d",count,page] #define WeakURlString(count,page) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/list/week?count=%d&page=%d",count,page] #define MonthURLString(count,page) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/list/month?count=%d&page=%d",count,page] #define CommentsURLString(ID) [NSString stringWithFormat:@"http://m2.qiushibaike.com/article/%@/comments?count=500&page=1",ID]
糗百的数据维度不错!!!!!!!!!!!!!
最后 发现是 int 型数据 我 用的是 Nstring ,修改成int 就ok了。
@property (nonatomic, copy) NSString *userPicLink; @property ( nonatomic, copy) NSString *userName; @property ( nonatomic, copy) NSString *content; @property (nonatomic,assign) int *badNum; @property (nonatomic,assign) int *contentNum; @property (nonatomic,assign) int *goodNum; - (id)initWithDictionary:(NSDictionary *)dictionary;
json解析过程中,若是全是数字,会默认成nscfnumber。
结果如下:
捐助开发者
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(右上角的爱心标志,支持支付宝和PayPal捐助),没钱捧个人场,谢谢各位。
谢谢您的赞助,我会做的更好!
相关推荐
本Demo主要是实现了iOS捕获程序异常崩溃,然后将崩溃信息提交到服务器,这些信息包括崩溃信息,操作系统信息等
ios app异常处理可以发送邮件,ios app异常处理可以发送邮件的代码实现。
iOS异常捕捉提示,发送邮件及写入异常日志。 提供 断言, 错误的具体位置(类名及行数)、所有异常报告内容、及异常报告文件路径接口。 并统一展示 异常日志 。
ios app的闪退异常的处理,ios app的闪退异常的处理的代码的实现。
iOS异常捕捉提示,发送邮件及写入异常日志。 提供 断言, 错误的具体位置(类名及行数)、所有异常报告内容、及异常报告文件路径接口。 并统一展示 异常日志 。
本demo只是简单的演示一个异常捕获,具体使用还需要看你的项目实际需求
当IOS运行过程中产生异常,程序CRASH,自动将异常发送到指定邮箱。通过邮箱查看跟踪CRASH原因。
添加UncaughtExceptionHandler这个类 iOS SDK提供的函数是NSSetUncaughtExceptionHandler来进行异常处理。但是无法处理内存访问错误、重复释放等错误,因为这些错误发送的SIGNAL。所以需要处理这些SIGNAL
这个方法类可以主动捕捉异常并上传到分发到服务器
location驱动ios12.4 ios12.3 ios12.2 ios12.1 ios12.0 ios11.0 ios11.4
ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧版抓包工具ios旧...
主要用于NSException 异常的捕捉,可以捕获对应的异常。
iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16真机包iOS 16...
iOS异常捕获和崩溃日志 欢迎关注 http://blog.csdn.net/u014220518/article/details/53522239
https://github.com/MrLujh/SafeObject.git
iOS 10 App Development Essentials: Learn to Develop iOS 10 Apps with Xcode 8 and Swift 3 Author: Neil Smyth Length: 816 pages Edition: 1 Language: English Publisher: CreateSpace Independent Publishing...
iOS 10 in Swift 3 非常好的ios书! 非常好的ios书! 非常好的ios书! 非常好的ios书! 非常好的ios书! 非常好的ios书!
iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS 15.4真机包iOS ...
ios 录屏开发 支持 ios9 ios10 ios11
HBuilderX申请iOS证书在线打包iOS文档,介绍iOS证书的申请及打包过程!