- 博客(261)
- 资源 (4)
- 收藏
- 关注
原创 eclipse maven plugin 插件 安装 和 配置
环境准备:eclipse(Helios) 3.6maven 3.0.4 maven3 安装: 安装 Maven 之前要求先确定你的 JDK 已经安装配置完成。Maven是 Apache 下的一个项目,目前最新版本是 3.0.4,我用的也是这个。 首先去官网下载 Maven:http://www.apache.org/dyn/closer.cgi/maven/...
2013-12-30 12:17:35
211
原创 Fixing the Eclipse PermGen Space
Fixing the Eclipse PermGen Space (Out of Memory) Error When Using JDK 1.6.0_21Eclipse has a very serious bug where it does not properly pass the memory limits from eclipse.ini to Java. As a result,...
2013-07-27 22:47:10
245
原创 Servlet and JSP History
Source from : http://www.pearsonitcertification.com/articles/article.aspx?p=29786&seqNum=3 The Internet's original purpose was to access and copy files from one computer to another far away ...
2013-07-27 09:38:19
264
原创 Servlet Versions
Servlet VersionsA Servlet is the part of the Java Servlet API . This API has protocol according to which a Java class may respond to HTTP requests. The first servlet API with complete specificatio...
2013-07-27 08:41:49
178
原创 初步认识XMLHttpRequest
首先,我们先来看看XMLHttpRequest这个对象的属性。它的属性有:onreadystatechange 每次状态改变所触发事件的事件处理程序。responseText 从服务器进程返回数据的字符串形式。respon***ML 从服务器进程返回的DOM兼容的文档数据对象。status 从服务器返回的数字代码,比如常见的404(未找到)和...
2013-03-18 22:11:55
133
原创 Installing Tomcat on Mac OS X
To get Tomcat, visit the following link: http://tomcat.apache.org/. Once there, click on the Tomcat 5.5 link under the Download heading. Under Core, select the tar.gz file.Download the tar.gz file....
2013-02-28 16:15:17
125
原创 IOS 开发资料参考
1:本地和推送通知编程指南原文:http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008194-CH1-SW1...
2012-12-31 11:40:15
110
原创 转载:移动互联网服务客户端开发技巧 ( Webview及正则)
转载自:http://www.cnblogs.com/pengyingh/articles/2341067.html 随着微博、LBS 等移动互联网服务的火爆普及,越来越多的苹果开发者希望制作各网络服务的 iPhone 客户端。CocoaChina 会员 “qdvictory” 的《基于网络的客户端开发技巧》系列文章详细介绍了 iPhone 客户端应用的开发思路和注意事项,希望...
2012-12-26 14:12:49
138
原创 UIWebView怎么禁用掉长按后的文字选择框
dataDetectorTypes的意思是自动识别某些类型的文本,像电话号码、超链接这样的。跟长按之后的文本选择没有关系吧。 第一种情况:如果UIWebView加载的是网页文档,可以在代码中加入js代码[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitUserSe...
2012-12-26 14:10:04
214
原创 IOS Content Modes
Content Modes:View 通过 content mode 来控制在 view 几何变化时如何 recyle view 的内容,或者是否 recyle view 的内容。当一个 view 首次展示,view 会被抓取一个 bitmap,之后 view 的几何变化不会总是导致 bitmap 的重建,content mode 决定 bitmap 是否扩展到新边...
2012-12-19 12:07:32
201
原创 类似Mac 登录不成功的shake效果
-(void) shake { // "Shakes" similar to OS X login screen CGAffineTransform moveRight = CGAffineTransformTranslate(CGAffineTransformIdentity, 20, 0); CGAffineTransform moveLeft = CGAffin...
2012-12-19 10:37:42
104
原创 ios资源概述
http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/LoadingResources/Introduction/Introduction.html iOS中的资源种类包括:nib文件,字符串资源,图像(images),声音(Sounds),视屏(Movies),属性列表(plist). iOS支持...
2012-12-18 16:07:30
139
原创 [转载]UIView的层次结构--code
转载自:http://blog.youkuaiyun.com/theonezh/article/details/8216584 // Recursively travel down the view tree, increasing the indentation level for children- (void)dumpView:(UIView *)aView atIndent:(...
2012-12-18 15:23:18
112
原创 iphone开发NSString字符串常用方法
//一、NSString //1、创建常量字符串。NSString *astring = @"This is a String!";//2、创建空字符串,给予赋值。NSString *astring = [[NSString alloc] init];astring = @"This is a...
2012-12-18 10:17:53
101
原创 Objective-C消息机制的原理(转)
转自:http://my.oschina.net/amoyai/blog/94561在Objective-C中,message与方法的真正实现是在执行阶段绑定的,而非编译阶段。编译器会将消息发送转换成对objc_msgSend方法的调用。 objc_msgSend方法含两个必要参数:receiver、方法名(即:selector),如: ...
2012-12-13 17:37:18
108
原创 UITableViewCell的几种样式设置预览总结
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 informati...
2012-12-13 14:23:52
180
原创 Gesture手势 转自http://blog.sina.com.cn/s/blog_8a6c97b5010106zq.html
tap是指轻触手势。类似鼠标操作的点击。从iOS 3.2版本开始支持完善的手势api:tap:轻触long press:在一点上长按pinch:两个指头捏或者放的操作pan:手指的拖动swipe:手指在屏幕上很快的滑动rotation:手指反向操作这为开发者编写手势识别操作,提供了很大的方便,想想之前用android写手势滑动...
2012-12-04 08:58:24
196
原创 常用的几个提高iOS开发效率的开源类库及工具
常用的几个提高iOS开发效率的开源类库及工具iOS开发者: 开发几个常用的开源类库及下载地址:算上这个连接:http://wenku.baidu.com/view/bbeb0091dd88d0d233d46a00.html1.json json编码解码2.GTMBase64 base64编码解码3.TouchXML xml解析4.SFHFKeycha...
2012-11-26 16:50:23
157
原创 Three20 style 设置的一些例子
Three20 style 设置的一些例子 需要的前置知识:http://mattvague.com/three20-stylesheets-tutorialhttp://mattvague.com/three20-tttableitem-tutorial 如何改变导航栏 颜色:可以直接改:self.navigationBarTintColor = ...
2012-11-26 16:49:02
128
原创 How to create static library
原文地址: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 rea...
2012-11-26 16:28:49
178
原创 重要的知识点整理
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...
2012-11-25 18:43:16
119
原创 IOS 动画那点事
IOS 动画分为两个部分:1.2.core animation AnimationsChanges to several view properties can be animated—that is, changing the property creates an animation that conveys the change to the user over a sh...
2012-11-25 18:42:15
126
原创 Transitioning to ARC Release[迁移到ARC机制来实现内存管理:官方文档]
见链接:https://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226
2012-11-25 18:41:34
119
原创 实现一个横向的UItableview
像这样的tableview是怎样实现的,能够横向滑动 ,从外表看来和UItableview实现的效果是一样的,但是是横向的。 方法一:设置tableview属性: _tableView.transform = CGAffineTransformMakeRotation(-M_PI / 2); 设置cell属性 ...
2012-11-24 17:10:57
156
原创 Cookie functions
/*================================================== Cookie functions ==================================================*/function setCookie(name, value, expires, path, domain, secure) { ...
2012-10-22 15:36:05
105
原创 打开键盘遮住View的问题解决方法1-IOS开发
首先我们要知道键盘的高度是固定不变的,不过在IOS 5.0 以后键盘的高度貌似不是216了,不过不要紧,我们调整调整就是了: iPhoneipad竖屏(portrait)216264横屏(landScape)140352我们采取的方法就是在textField(有可能是其他控件)接收到弹出键盘事件时把self.view整体...
2012-10-21 15:51:59
90
原创 @Autowired 和 @Resource 的区别和联系【总结】
@Autowired 和 @Resource 的区别和联系【总结】 @Autowired注解是按类型装配依赖对象,默认情况下它要求依赖对象必须存在,如果允许null值,可以设置它required属性为false[e.g: @Autowired(required=false)]。如果我们想使用按名称装配,可以结合@Qualifier注解一起使用。如下: ...
2012-10-09 15:51:35
94
原创 oracle 中 NLSSORT函数的用法
oracle 中 NLSSORT函数的用法NLSSORT(),用来进行语言排序拼音 SELECT * FROM TEAM ORDER BY NLSSORT(排序字段名,'NLS_SORT = SCHINESE_PINYIN_M') 笔划 SELECT * FROM TEAM ORDER BY NLSSORT(...
2012-09-23 17:13:28
193
原创 eclipse性能优化
提高eclipse的性能,去除validate验证,关闭checking for update自动更新 2012-03-08 10:51:44| 分类: 默认分类 |字号 ...
2012-09-15 17:18:07
209
原创 An internal error occurred during: "Building workspace". Java heap space
An internal error occurred during: "Building workspace". Java heap space今天MyEclipse导入了一个比较大的项目,出现了an internal error occurred duringbuilding workspace错误。网上搜了一下,据说是内存溢出问题。可以通过修改myeclipse.ini文件...
2012-09-15 16:32:24
384
原创 Version 1.4.2_03 of the JVM not suitable for this product.Ve...
Version 1.4.2_03 of the JVM not suitable for this product.Ve... 名人名言:青年人对于社会的要求也高,失望也快,却很少注意到,一个成功的中年人或老年人的背后,往往有着许多辛酸血泪的故事。这尚不够,那份持续的认真与努力,也是一个成功者必然的付出。这以上说得又不完全,智慧才是一个人成功最大的条...
2012-09-15 14:36:05
489
原创 OC 内存管理实战
注意点:在init函数[包括其拓展] 以及 dealloc 函数中,不建议使用Accessor Methods,建议的代码如下: Don’t Use Accessor Methods in Initializer Methods and deallocDon’t Use Accessor Methods in Initializer Met...
2012-09-06 12:43:20
76
原创 IOS 关于分辨率的那点事
转载自:http://www.cnblogs.com/BigPolarBear/archive/2012/03/26/2417777.html 都说做iOS开发比Android省心,那么iOS是如何做到这一点的呢?我们今天就来分析一下,希望对做iOS的界面设计的同学有点帮助。 1 iOS设备的分辨率iOS设备,目前最主要的有3种(Apple TV等不在此讨论),按分辨率分...
2012-09-05 18:32:05
77
原创 一些有关图像处理的代码片段(抓图、倒影、圆角)
捕捉屏幕截图CALayer实例使用Core Graphics的renderInContext方法可以将视图绘制到图像上下文中以便转化为其他UIImage实例。前提先#import <QuartzCore/QuartzCore.h>+ (UIImage *) imageFromView: (UIView *)theView {// draw a...
2012-09-05 12:23:32
105
原创 OC 常用数据类型之间的转换
1: NSString <==> NSInteger NSInteger转化 NSString类型: [NSString stringWithFormat: @"%d", NSInteger];NSString转化 NSInteger类型: NSInteger = [ NSStr...
2012-09-05 12:22:02
353
原创 UIViewContrller之间的切换有三种方式
1.UIViewContrller之间的切换有三种方式: 一、UIViewController自身之间的调用:[self presentModalViewController:UIViewController animated:YES];对应的返回操作函数:[self dismissModalViewControllerAnimated:YES];这...
2012-09-05 12:21:38
175
原创 IOS 网络连接相关资源
IOS参考官方文档:https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html 如果你想下载URL所制定的内容,必须要要实现这个协议:NSURLConnectionDelegate 其中的几个方法: ...
2012-09-05 12:21:01
103
原创 iphone开发 NSXMLParser解析xml文件
iphone开发 NSXMLParser解析xml文件 xml文件如下:Question.xml,放在Resource文件目录中 <?xml version="1.0" encoding="UTF-8"?> <Root> <Question> <QuestionTitle>你的学习成绩如何?</Questio
2012-09-04 17:58:03
73
原创 详解iOS平台XML解析类库对比和安装说明
详解iOS平台XML解析类库对比和安装说明是本文要介绍的内容。不多说,先来看内容。在iPhone开发中,XML的解析有很多选择,iOS SDK提供了NSXMLParser和libxml2两个类库,另外还有很多第三方类库可选,例如TBXML、TouchXML、KissXML、TinyXML和GDataXML。问题是应该选择哪一个呢?解析 XML 通常有两种方式,...
2012-09-04 17:57:18
162
原创 动态改变UITableView中的Cell高度
往往在开发iPhone的应用过程中用得最多的应该算是UITableVIew了,凭着IOS给UITableView赋予了这种灵活的框架结构,让它不管在显示列表方面还是在排版方面都有着一定的优势。虽然UITableView功能强大,但是对于一些复杂的应用需求在开发的过程中会出现一些问题,如动态改变UITableView显示的Cell高度就是其中之一 其实想要改变UIT...
2012-09-04 17:23:39
147
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人