编程技巧
liu大
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS 设置 setContentOffset 时序
转自stackoffoverflow: Scrolling to a specific top-left location (the contentOffset property) can be accomplished in two ways. The setContentOffset:animated: method scrolls the content to the转载 2013-12-30 14:36:46 · 3459 阅读 · 0 评论 -
设置一个需要调整的值的一般逻辑
以offset为例: 1. offset = default value; 2. if (offset 越界){offset = 0(即极限值)} 3. setOffset 方法执行原创 2013-12-30 14:45:19 · 786 阅读 · 0 评论 -
Mac & Linux 命令行(持续更新)
------------------------------------------------------------------------------------------------------------------------------------- defaults write com.apple.Finder AppleShowAllFiles Yes && killal原创 2013-12-31 11:41:32 · 1029 阅读 · 0 评论 -
iOS实用宏macro定义(持续更新)
iOS常用宏定义(持续更新) --------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------原创 2013-12-31 16:54:56 · 2590 阅读 · 0 评论 -
iOS工程迁移至xcode5 适配iOS7 代码修改 (持续更新)
Xcode5与iOS7的兼容性修改 (持续更新) --------------------------------------------------------------------------- --------------------------------------------------------------------------- navigationControll原创 2013-12-31 16:41:00 · 2165 阅读 · 0 评论 -
__block的两种核心用法(摘自iOS 7 Programming Fundamentals: Objective-C, Xcode, and Cocoa Basics)
page 69 - 73 1. 在block使用的区域里操作block之外的变量。 2. The second chief use of the __block qualifier is the converse of the first. It arises when a block will be executed at some time after it is d原创 2014-01-06 15:01:06 · 3248 阅读 · 0 评论 -
iOS的scrollView属性directionalLockEnabled的问题修正
感谢公司的QA发现这个问题,感谢stockoverflow的高手提出解决方案,感谢公司的大大实现了具体的代码 这个问题是我负责的,但是我没有能力解决,所以要声明的是,这篇文章是我的原创,但是有很多人的劳动成果在里面,之所以放上来是因为在中文材料中还没有关于这个问题的解决方案,算是填补空白吧——————————顺便吐槽下挑剔到变态的客户 ^_^ ~~~~~~~~~~~~~~~~~~~~~惭愧的分原创 2014-01-09 00:13:34 · 14184 阅读 · 2 评论 -
iOS主页滚动页面组件
从suncomponent继承并改造,主体是collection view ,具体效果可以参见网易新闻客户端。 可滚动,点击,并留出接口给侧滑菜单使用。 外部容器可实时变化,例如横幅广告的延时插入等。 需要注意,外部容器一般是需要用autolayout的,否则可能会有不兼容iphone4s的情况。 目前组件内部没有使用autolayout,但是并不影响使用。有计划迁移到代码添加的autol原创 2015-05-22 14:34:15 · 808 阅读 · 0 评论
分享