ITeye博客

xukjava的博客

xukjava · 共 5 篇文章

Objective-c int转成String

[NSString stringWithFormat:@"%d",numberYouAreTryingToConvert]

2012-02-26 11:03 · IOS开发 · 评论(0)

UILabel的各种属性与方法的使用(转)

#import "LabelTestViewController.h" @implementation LabelTestViewController /* Accessing the Text Attributes text property font property textColor property textAlignment property lineBreakMode property enabled property Sizing the Label’s Text adjustsFontSizeToFitWidth property baselineAdjustment pr…

2012-02-26 10:52 · IOS开发 · 评论(0)

instance 与 object reference

instance 与 object reference 区别

2011-07-07 14:25 · java开发 · 评论(0)

Action中使用BeanUtils.copyProperties

原文 http://javacrazyer.iteye.com/blog/1032705 一、简介: BeanUtils 提供对 Java反射和自省API的包装。其主要目的是利用反射机制对JavaBean的属性进行处理。我们知道,一个JavaBean通常包含了大量的属性,很 多情况下,对JavaBean的处理导致大量get/set代码堆积,增加了代码长度和阅读代码的难度。 二、用法: BeanUtils是这个包里比较常用的一个工具类,这里只介绍它的copyProperties()方法。该方法定义如下: public static void copyProperties(java.lang.O…

2011-05-17 14:25 · java开发 · 评论(0)

ImportError: Settings cannot be imported, because environment variable DJANGO_SE

使用Django时在命令行中敲击Python命令进入交互模式,如果直接如下操作:from django.template import Template ,Contextt = Template(”Test is {{test}}”) 会导致: ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. 原因是django的配置信息没有初始化。解决方法有两种:(1)切换到Project或者APP所在的目录使用manage.py shell…

2010-11-02 11:06 · 评论(0)