https://github.com/YouXianMing
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 85 下一页
摘要: 限定pan手势只能在圆内移动view效果:虽然看起来很简单,但实现原理还是稍微有点复杂-_-!!核心的地方,就是需要计算pan手势的点与指定点的距离,不能超过这个距离,超过了就让动画还原,很容易理解:)//// RootViewController.m// Circle//// Copyrig... 阅读全文
posted @ 2014-07-05 09:38 YouXianMing 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: POST请求上传多张图片并携带参数在iOS中,用POST请求携带参数上传图片是非常恶心的事情,HTTPBody部分完全需要我们自己来配置,这个HTTPBody分为3个部分,头部分可以携带参数,中间部分就是我们要传输的图片文件,尾部就是结束标识了,这些设置完了还不够,你还需要配置一下HTTPHeade... 阅读全文
posted @ 2014-07-04 14:47 YouXianMing 阅读(6329) 评论(2) 推荐(0) 编辑
摘要: 动态展开tableView的cell[2]http://code4app.com/ios/%E5%8A%A8%E6%80%81%E6%B7%BB%E5%8A%A0cell/53845f8a933bf0740a8b458a这份代码也是参考别人而写的-_-!效果:其实呢,这份代码本人是不推荐的,很难维护... 阅读全文
posted @ 2014-07-03 15:01 YouXianMing 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 使用keychain永久存储数据https://github.com/soffes/sskeychainkeychain当然还是使用开源的好:),keychain是干啥用的?这个,baidu一下你应该会更了解了.使用是超级简单的,下载源码拖入工程引入头文件,然后.//// AppDelegate.... 阅读全文
posted @ 2014-07-03 09:45 YouXianMing 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 动态展开tableView的cell[1]源码地址:https://github.com/xerxes235/HVTableView虽然作者写的demo很好看,可是,你很难理解他是怎么玩的-_-!!,不信,你可以去下载他的demo试一下:)本人运行时的效果如下图:源码:RootViewControl... 阅读全文
posted @ 2014-07-02 12:24 YouXianMing 阅读(819) 评论(0) 推荐(1) 编辑
摘要: snapshotViewAfterScreenUpdatesThis method very efficiently captures the current rendered appearance of a view and uses it to build a new snapshot view... 阅读全文
posted @ 2014-07-02 09:42 YouXianMing 阅读(1954) 评论(0) 推荐(2) 编辑
摘要: NSArray排序方法讲解给数组排序有着多种方式最麻烦的是sortedArrayUsingSelector:,其次是sortedArrayUsingDescriptors:,最容易使用的就是sortedArrayUsingComparator:从最容易使用的开始吧: // 原始数组 NS... 阅读全文
posted @ 2014-07-01 09:22 YouXianMing 阅读(1913) 评论(0) 推荐(1) 编辑
摘要: UIWindow,UINavigationController与UIViewController之间的关系虽然每次你都用UINavigationController与UIWindow,但你不一定知道他们之间到底怎么运作的哦:)AppDelegate.h的代码RootViewController.m/... 阅读全文
posted @ 2014-06-30 10:05 YouXianMing 阅读(2247) 评论(0) 推荐(0) 编辑
摘要: 获取INET4与INET6的信息参考书籍:本人封装的源码://// IPAddressInfo.h// YXNETWORK//// http://www.cnblogs.com/YouXianMing///// Copyright (c) 2014年 Y.X. All rights rese... 阅读全文
posted @ 2014-06-28 20:40 YouXianMing 阅读(1275) 评论(2) 推荐(0) 编辑
摘要: 分析UIWindowThe UIWindow class defines an object known as a window that manages and coordinates the views an app displays on a device screen. Unless an ... 阅读全文
posted @ 2014-06-27 13:16 YouXianMing 阅读(575) 评论(0) 推荐(0) 编辑
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 85 下一页