一、头文件#define 的保护项目 foo 中的头文件 foo/src/bar/baz.h 按如下方式保护:#ifndef FOO_BAR_BAZ_H_#define FOO_BAR_BAZ_H_...#endif //FOO_BAR_BAZ_H_#ifdef WINDOWS #define MY...
分类:
编程语言 时间:
2014-10-06 19:05:10
阅读次数:
178
环境:XCODE:5.0.2 IOS7模拟器界面:使用storyboard 拖拽简单应用:一个CoreData的CRUD用例。界面如下图(一个UITableViewController 列表 查询和删除 选择UITableViewCell后显示详细页面 一个UIViewController 进行编....
分类:
移动开发 时间:
2014-10-01 20:02:41
阅读次数:
297
iOS 7的某些场合会造成无法隐藏Status Bar的问题。例如在ParentViewController中Add一个ChildViewController,如果ParentViewController的
prefersStatusBarHidden方法返回的是NO,那么即使ChildViewController中的prefersStatusBarHidden方法返回的是YES并调用刷新状态栏的代码,也无法隐藏Status Bar。解决方案:Method Swizzling...
分类:
移动开发 时间:
2014-10-01 02:34:50
阅读次数:
191
先看下面几个属性 ui-body ui-bar ui-corner-all ui-body-[a-z] custom-cornersui-bar创建一个通栏的块,可以作为内容块的区分,通过ui-bar-[a-z]用户可以修改皮肤。ui-body的用法跟ui-bar的用法一样ui-corner-all...
分类:
Web程序 时间:
2014-09-30 19:45:29
阅读次数:
400
原题地址:https://oj.leetcode.com/problems/largest-rectangle-in-histogram/题意:Givennnon-negative integers representing the histogram's bar height where the ...
分类:
编程语言 时间:
2014-09-30 12:39:02
阅读次数:
254
MVC 5 Ajax + bootstrap+ handle bar 例: 实现service 状态...
分类:
Web程序 时间:
2014-09-29 17:08:22
阅读次数:
177
方法1: 用file_get_contents 以get方式获取内容 方法2: 用fopen打开url, 以get方式获取内容 方法3:用file_get_contents函数,以post方式获取url 'bar');//生成url-encode后的请求字符串,将数组转换为字符串 ...
分类:
Web程序 时间:
2014-09-28 10:22:41
阅读次数:
198
NavBar+TarBariphone开发 NavBar+TarBar1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;3 隐藏"NavBar" : s...
分类:
移动开发 时间:
2014-09-28 09:59:41
阅读次数:
155
Layout SupportThis protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a...
分类:
其他好文 时间:
2014-09-26 12:46:58
阅读次数:
174
1.布局文件中的SeekBar:
(进度条样式 android:progressDrawable="@drawable/seekbar_bg")
(拖动按钮 android:thumb="@drawable/thumb_bar" 也可配置样式,如按下状态等;)
android:id="@+id/my_se...
分类:
其他好文 时间:
2014-09-26 11:32:18
阅读次数:
217