- 博客(8)
- 收藏
- 关注
原创 避免按钮频繁点击
@interface UIControl (XX) @property (nonatomic, assign) NSTimeInterval time_Interval; @endstatic const char * Const_KEY = “time_Interval”; static CFAbsoluteTime startTime,endTime;@implementation UI
2017-03-15 16:53:20
395
转载 Mac 下eclipse python 配置安装
http://jingyan.baidu.com/article/cd4c2979101f02756f6e6064.html
2017-02-17 11:40:37
261
原创 Mac python 下控制台输出汉字
# -*- coding: utf-8 -*-import jsonclassMates = ['one','two','three','four']print(classMates)print(len(classMates))string='汉字'classMates.insert(0, string)sssss = classMates[0]print sssss.deco
2017-02-15 11:55:15
1623
转载 设置某个界面强制横屏
iOS设置某个界面强制横屏,进入就横屏最近有一个项目,例如:A界面跳转到B界面,A界面是竖屏的,B界面进入就要横屏。花了半天的时间在网上搜索解决方案,有些论坛的大牛也就贴两行代码,具体实现也没有,对我们这种菜鸟造成一万点真实伤害。为了避免后人在浪费时间,在这里我整理一下,并且上传Demo到GitHub。在iOS7 8 9 上运行都OK.在这里我整理了3种解决方案。原
2016-12-22 13:10:20
761
转载 dispatch_semaphore_t 信号量
转载请注明出处http://www.cnblogs.com/snailHL/p/3906112.htmldispatch_semaphore是GCD用来同步的一种方式,与他相关的共有三个函数,分别是dispatch_semaphore_create,dispatch_semaphore_signal,dispatch_semaphore_wait。下面我们逐一介绍三个函数:
2016-12-14 17:04:53
340
原创 正确使用 autorelease pool blocks
1. 不基于 一个 UI框架 例如 a command-line tool。2. 循环创建许多临时对象。使用 autorelease pool blocks 减少应用程序最大内存占用。3.生成一个辅助线程。 You must create your own autorelease pool block as soon as the thread begins executi
2016-12-02 10:22:20
275
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人