自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

转载 sun.misc.BASE64Encoder找不到jar包的解决方法

1.右键项目-》属性-》java bulid path-》jre System Library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!!2.在MyEclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: Acces

2014-09-01 11:40:36 440

原创 eclipse插件spket安装

由于extjs4.0以后的版本都没有jsb文件,

2014-08-14 13:27:18 413

转载 Tomcat 6.x:please verify the preference field with the prompt: cannot connect to VM

由于个人经不住公司电脑强大的配置,昨晚还是没忍住,终于使其从单一的工作性质转变成集工作、娱乐为一体的多功能PC;整晚的体验是空前的,爽~;结果今天来公司向打开MyEclipse 的Tomcat的时候突然出现 Error starting Tomcat 6.x server 的终极问题;一直怀疑是JDK或者是MyEclipse出现了问题,就对两者都进行了重装,事实证明是徒劳的...最后在网上找到大神

2014-08-07 17:43:32 1381

转载 Oracle 记录被另一个用户锁住

有人对该表进行了锁定。

2014-07-18 11:18:15 454

原创 ORA-00918: 未明确定义列

原因一 : 是由於不小心有兩個相同的字段存在,重名了!可能要檢測相關字段是否重複,另外檢測子表或子查詢中是否存在此字段同時建議能不用INNER JOIN就不用!

2014-07-08 10:36:03 1376

转载 Tomcat:IOException while loading persisted sessions: java.io.EOFException解决手记

一直用tomcat一段时间都正常无事,最近一次启动tomcat就发生以下异常:严重: IOException while loading persisted sessions: java.io.EOFException严重: Exception loading sessions from persistent storage原因是tomcat对硬盘的session读取失败,

2014-07-04 09:00:46 346

转载 Attempted to lock an already-locked dir异常解决方法

org.tigris.subversion.javahl.ClientException: Attempted to lock an already-locked dir解决方法(3种):1、在客户端命令行使用命令 svn cleanup D:/Program Files/MyEclipse/workspace/proj/WebRoot/(被锁定的文件夹)2、直接进入到上面的文件夹

2014-07-03 16:26:43 481

转载 Access restriction: The type JPEGCodec is not accessible due to restriction on required library

Access restriction: The type JPEGCodec is not accessible due to restriction on required library

2014-05-13 14:27:27 546

转载 weblogic.application.ModuleException: Context path '' is already in use by the module

weblogic.application.ModuleException: Context path '' is already in use by the module经排查是weblogic的配置文件有问题:

2014-05-13 14:25:48 18251

转载 eclipse4.3 svn插件安装与字体修正

1. 在线安装SVN插件在Eclipse 中,Help -> Install New software -> Find and Install...菜单下。在弹出对话框中的输入框中输入http://subclipse.tigris.org/update作为URL添加New Remote Site。就可以让Eclipse自动下载为你安装SVN插件了,安装成功后重新启动Ec

2014-05-12 10:49:00 553

原创 UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:

确保1、Identity中的class输入了相应的controller文件名2、选中cell 在Attributes中的Identifier中 输入了相应cell名称如果还是报错,则:在cellForRowAtIndexPath中插入如下代码:    if (cell == nil) {        cell = [[UITableViewCell alloc] init

2013-10-09 18:06:38 2343

原创 改变navigation中的back button的title

第一:在storyboard中改变:点击navigation——attributes——back button 输入自己想要的字符串第二:代码改变DisclosureButtonController *disclosureButtonController = [[DisclosureButtonController alloc] initWithStyle:UITableViewSty

2013-10-09 17:59:29 1176

转载 addSubview和insertSubview 区别 .

子视图是以栈的方式存放的。每次addsubview时都是在最后面添加。每次在addsubview前和addsubview后可以看看[self.view.subViews count];你看看你的子视图是被添加到哪个位置了。另外[self.view addSubView:xx.view]   其实就等于[self.view insertSubView:xx.view atIndex:

2013-09-17 16:10:21 521

转载 'UITextAlignmentRight' is deprecated: first deprecated in ios6.0

mylabel.textAlignment=  UITextAlignmentCenter; 此时会有警告'UITextAlignmentRight' is deprecated: first deprecated in iOS 6.0解决方法:mylabel.textAlignment= NSTextAlignmentCenter;//UITextAlignmentC

2013-09-17 16:03:17 2888

转载 loaded the "***" nib but the view outlet was not set

loaded the "BlueView" nib but the view outlet was not set 异常的解决方法loaded the "xxxViewController" nib but the view outlet was not set 错误的解决办法'-[UIViewController _loadViewFromNibNamed:bundle:]

2013-09-10 13:12:30 1385

转载 NSString

NSString类中提供了这样三个方法用于获取子字符串:– substringFromIndex:– substringWithRange:– substringToIndex:它们该怎么使用呢?见下面代码即可知道。 NSString *str = @"12345"; // NSString *subString0 = [str substringF

2013-09-09 17:40:14 547

转载 UIViewController的跳转方式

1.UIViewContrller之间的切换有三种方式:     一、UIViewController自身之间的调用:[self presentModalViewController:UIViewController animated:YES];对应的返回操作函数:[self dismissModalViewControllerAnimated:YES];这里的self代表的是UI

2013-09-05 15:59:36 3435

原创 IOS 如何为UIView设置大小适宜的背景图片

比如,我想为UIView设置一个全屏的背景图片,但是所用图片太大,又因为这个UIView是根据屏幕大小动态生成的,这时就需要动态改变这个图片的大小,使之能够适应不同设备. UIImage *img_m = [UIImage imageNamed:@"login1.jpg"]; UIImage *img_a; CGFloat width = self.view.frame

2013-09-05 15:52:11 3193

原创 如何判断所用设备是IPhone4还是IPhone5

IPhone4,4s和5的宽度一样,但是前两者高度是480,后者是568.所以判断当恰设备的高度就可以知道了  CGFloat screenHeight = [[UIScreen mainScreen] bounds].size.height; if (screenHeight == 480) {...} if (screenHeight == 56

2013-09-05 15:45:15 2240

原创 键盘的显示和关闭

键盘的显示很简单,点击一下UITextField就可以了。[textUserName becomeFirstResponder]; 键盘的关闭打开键盘时,控件上升。点击背景,关闭键盘,控件下降。在viewDidLoad里面创建一个键盘显示的通知,当系统监测到UIKeyboardWillShowNotification这个通知时,就会调用keyboardWillShow这个方法。

2013-09-05 14:55:04 965

原创 NSUserDefaults

其实NSUserDefaults就像一个NSDictionary一样。 例如:01.NSString *string = [NSString stringWithString @"hahaha"]; 02.NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];//初始化NSUserDefault 03.[ud se

2013-09-05 11:57:43 665

原创 UITextField总结大全

图形操作的基础知识     1、Text :设置文本框的默认文本。2、Placeholder : 可以在文本框中显示灰色的字,用于提示用户应该在这个文本框输入什么内容。当这个文本框中输入了数据时,用于提示的灰色的字将会自动消失。3、Background :4、Disabled : 若选中此项,用户将不能更改文本框内容。5、接下来是三个按钮,用来设置对

2013-09-05 11:16:11 1498

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除