`
反求诸己
  • 浏览: 534696 次
  • 性别: Icon_minigender_1
  • 来自: 湖南娄底
社区版块
存档分类
最新评论
文章列表
iOS defines four table-cell styles that implement the most common layouts for table rows in both plain and grouped tables. Each cell style is best suited to display a different type of information. Note:  Programmatically, these styles are applied to a table view’s cell, which is an obje ...
tap是指轻触手势。类似鼠标操作的点击。从iOS 3.2版本开始支持完善的手势api: tap:轻触 long press:在一点上长按 pinch:两个指头捏或者放的操作 pan:手指的拖动 swipe:手指在屏幕上很快的滑动 rotation:手指反向操作 这为开发者编写手势识别操作,提供了很大的方便,想想之前用android写手势滑动的代码(编写android简单的手势切换视图示例 ),尤其感到幸福。 这里写一个简单的tap操作。在下面视图的蓝色视图内增加对tap的识别:
常用的几个提高iOS开发效率的开源类库及工具 iOS开发者 : 开发几个常用的开源类库及下载地址: 算上这个连接:http://wenku.baidu.com/view/bbeb0091dd88d0d233d46a00.html 1.json json编码解码 2.GTMBase64 base64编码解码 3.TouchXML xml解析 4.SFHFKeychainUtils 安全保存用户密码到keychain中 5.MBProgressHUD 很棒的一个加载等待特效框架 6.ASIHTTPRequest http等相关协议封装 7.EGOR ...
Three20 style 设置的一些例子   需要的前置知识: http://mattvague.com/three20-stylesheets-tutorial http://mattvague.com/three20-tttableitem-tutorial   如何改 变导航栏 颜色: 可以直接改: self.navigationBarTintColor = [UIColor blackColor]; 麻烦 之处 在于,每个页面 都得改一遍。   也可以使用全局的style sheet: -(UIColor *) navigationBar ...
原文地址: http://www.amateurinmotion.com/articles/2009/02/08/creating-a-static-library-for-iphone.html   Apple iPhone Developer agreement forbids using Frameworks in iPhone applications. The main reasons Apple does not allow using them is performance considerations and that developer-private frame ...
1:id是隐式指针,所以不需要* 2: Dynamically-typed object:e.g:id anObj; Statically-typed object:e.g:Person *anObj;   3:OC 提供编译时类型检查,而不是运行时类型检查,所有的类型检查都发生在编译时 4:OC总是使用动态类型绑定   5:OC创建对象只能通过动态创建的方式!   6:nil :it's basically always just zero typed to it as an id !   7:Collections summary:   Array :  ord ...
IOS 动画分为两个部分: 1. 2.core animation   Animations Changes to several view properties can be animated—that is, changing the property creates an animation that conveys the change to the user over a short period of time. The UIView class does most of the work of performing the actual animations but yo ...
见链接: https://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226  
像这样的tableview是怎样实现的,能够横向滑动 ,从外表看来和UItableview实现的效果是一样的,但是是横向的。 方法一:设置tableview属性:            _tableView.transform = CGAffineTransformMakeRotation(-M_PI / 2);            设置cell属性            cell.contentView.transform = CGAffineTransformMakeRotation(M_PI / 2); 方法二:横向UITableView已经有开源实现了  , ...
/*==================================================   Cookie functions   ==================================================*/ function setCookie(name, value, expires, path, domain, secure) {     document.cookie= name + "=" + escape(value) +         ((expires) ? "; expires=" ...
首先我们要知道键盘的高度是固定不变的,不过在IOS 5.0 以后键盘的高度貌似不是216了,不过不要紧,我们调整调整就是了:     iPhone ipad 竖屏(portrait) 216 264 横屏(landScape) 140 352 我们采取的方法就是在textField(有可能是其他控件)接收到弹出键盘事件时把self.view整体上移216px了(我们就以iPhone竖屏为例了)。   - (void)textFieldDidBeginEditing:(UITextField *)textField ...
@Autowired  和 @Resource 的区别和联系【总结】   @Autowired 注解是按类型 装配依赖对象,默认情况下它要求依赖对象必须存在,如果允许null值,可以设置它required属性为false[e.g:  @Autowired(required=false) ]。如果我们想使用按名称装配 ,可以结合@Qualifier 注解一起使用。如下:    @Autowired @Qualifier("personDaoBean")    private PersonDao personDao;        ...
oracle 中 NLSSORT函数的用法 NLSSORT(),用来进行语言排序 拼音 SELECT * FROM TEAM ORDER BY NLSSORT(排序字段名,'NLS_SORT = SCHINESE_PINYIN_M') 笔划 SELECT * FROM TEAM ORDER BY NLSSORT(排序字段名,'NLS_SORT = SCHINESE_STROKE_M') 部首 SELECT * FROM TEAM ORDER BY NLSSOR ...

eclipse性能优化

提高eclipse的性能,去除validate验证,关闭checking for update自动更新    2012-03-08 10:51:44 |  分类: 默认分类 | 字号   订阅 一、去除validate验证 1.给eclipse桌面快捷方式添加参数,这些按自己的机器来配置, 可 ...
An internal error occurred during: "Building workspace". Java heap space 今天MyEclipse导入了一个比较大的项目,出现了an internal error occurred during building workspace错误。 网上搜了一下,据说是内存溢出问题。可以通过修改myeclipse.ini ...
Global site tag (gtag.js) - Google Analytics