宏定义在很多方面都会使用,例如定义高度、判断iOS系统、工具类,还有诸如文件路径、服务端api接口文档。为了对宏能够快速定位和了解其功能,我们最好在定义的时候将其放入特定的头文件中 定义尺寸类的宏 DimensMacros.h//状态栏高度#define STATUS_BAR_HEIGHT ...
分类:
移动开发 时间:
2015-09-11 09:13:57
阅读次数:
175
..还是粘的课上做的笔记//WebView+Image Animation+Timer//UIBarButton UIBarButtonItem *bar = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSy...
分类:
其他好文 时间:
2015-09-10 20:52:31
阅读次数:
105
php对文本文件进行分页功能简单实现 Paging "; } if(ord(substr($str, $i, 1))>0xa0){ $tmp_str .= substr($str, $i, 2); $i++;...
分类:
Web程序 时间:
2015-09-10 15:43:12
阅读次数:
136
Date Picker和UITool Bar控件简单介绍一、Date Picker控件1.简单介绍:Date Picker显示时间的控件有默认宽高,不用设置数据源和代理如何改成中文的?(1)查看当前系统是否为中文的,把模拟器改成是中文的(2)属性,locale选择地区如果默认显示不符合需求。时间有四...
分类:
其他好文 时间:
2015-09-10 13:00:15
阅读次数:
208
UITabBarController生命周期(使用storyoard搭建)一、UITabBarController在storyoard中得搭建1.新建一个项目,把storyboard中默认的控制器删除,拖UITab Bar Controller。2.创建viewcontroller,添加到UITab...
分类:
其他好文 时间:
2015-09-10 12:46:37
阅读次数:
192
第一步:在info.plist中添加一个字段:view controller -base status bar 设置为NO第二步:在一个所有界面都继承的父类里添加:if(IOS7_OR_LATER) { // 判断是否是IOS7 [[UIApplicationsharedApplication]s....
分类:
移动开发 时间:
2015-09-07 19:20:35
阅读次数:
126
menu-bar-mode: File Edit Options Buffers Tools HelpFile: new-open file-open directory-save-save as-insert-revert-recover-print-window-frame-quitEdit: ...
分类:
系统相关 时间:
2015-09-07 12:45:23
阅读次数:
266
在linux下调tvp5150am1的过程中,遇到了一kernel oops,内容如下:[ 66.714603] Unable to handle kernel paging request at virtual address 00100104[ 66.721658] pgd = d37d0000...
分类:
系统相关 时间:
2015-09-06 20:02:24
阅读次数:
422
1. 定义布局文件,在layout下新建title_bar_view.xml 相关资源,在drawable下新建btn_back_selector.xml 2. 自定义View继承自RelativeLayoutpublic class TitleBar extends Re...
分类:
其他好文 时间:
2015-09-06 08:32:31
阅读次数:
397
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2015-09-05 23:41:55
阅读次数:
695