`
yourgame
  • 浏览: 352517 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
//接口中定义这个方法,然后在实现类中实现他 - (void)imageSavedToPhotosAlbum:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *) contextInfo; //实现类中实现 - (void)imageSavedToPhotosAlbum:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *) contextInfo { NSSt ...
NSFileManager *fileManager = [NSFileManager defaultManager]; //在这里获取应用程序Documents文件夹里的文件及文件夹列表 NSString *documentDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSError *error = nil; NSArray *fileList = [[N ...
self.photoSource = [[MockPhotoSource alloc] initWithType:MockPhotoSourceNormal title:@"Flickr Photos" pictures:[[NSArray alloc] initWithObjects: [[[MockPhoto alloc] ...
- (NSString *)dataPath:(NSString *)file { NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"badge"]; BOOL bo = [[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories ...
@interface AsyncImageView: UIView { NSURLConnection * connection; NSMutableData * data; } @end @implementation AsyncImageView - (void) loadImageFromURL: (NSURL * ) url { if (connection != nil) { [connection release]; } if (data != nil) { [data re ...
//侬侬官网连接 UILabel *labelGovUrl = [[UILabel alloc] initWithFrame:CGRectMake(73.0, 330.0, 180.0, 40.0)]; labelGovUrl.autoresizingMask = (UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight); labelGovUrl.text = @"侬侬官网 >"; labelGovUrl.backgroundColor = [UIC ...
iPhone 4 发布以来,开发者面临的一大问题就是软件要适应2种分辨率的屏幕。以下这段代码能判断当前运行的设备是否是 iPhone 4 的 Retina 屏,以便做出图标加载等调整。 //在头上门定义 #define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO) //方法中可以实用 - (void)loa ...
- (BOOL) isKindOfClass: classObj //是否是其子孙或一员 - (BOOL) isMemberOfClass: classObj //是否是其一员 - (BOOL) respondsToSelector: selector //是否有这种方法 + (BOOL) instancesRespondToSelector: selector //类的对象是否有这种方法 - (id) performSelector: selector // 执行对象的方法 #import "Square.h" ...
//应用程序代理 @interface SimpleTableViewAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; //程序主窗体 UINavigationController *navigationController; //在接口中定义导航控制器 } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) UINavigationControl ...
org.apache.struts2.json.JSONException: org.hibernate.LazyInitializationException <!--结果集产生的json已page为跟对象,排除null的属性和对象,包含page这个对象中属性名字中包含了results字符的对象中的所有字段的值,以及page对象中recordSize的值.排除page对象中包含results字样的属性中所有permission字样的属性值--> <![CDATA[ results.* 可以匹配如下对象 resultsa resultsb resu ...

Oracle笔记

--某年的前一年的最后一天 SELECT add_months(to_date('2009'||'-12-31','yyyy-MM-dd'), -12) FROM dual; --获得12个月 select lpad(level, 2, 0) from dual connect by level < 13 --获得当前月份的第一天和最后一天 select trunc(sysdate,'mm'),last_day(trunc(sysdate)) from dual;
自从EXTJS3.0发布后,很多同学后网友都要求我共享基于EXTJS3.0的多文件上传组件.我特地做了一个基于3.0和struts2的示例,特此奉上. w_e_ibo: http://t.cn/zjqEaRh   http://weibo.com/liao27 //调用方法 Ext.onReady(function() { var win = new Ext.Window({ title : '多文件上传示例', width : 500, height : 500, resizable : false, layout : 'fit', i ...
很多朋友觉得extjs的字体在ie浏览器中显示要好看些,认为在火狐中显示的字体小了一个像素不好看.特别奉上补丁样式文件.
Struts2的josn插件 josn-plugin 对我们开发extjs程序很方便,但是他每次返回的数据格式都是以一个对象的方式返回的,对象中可以包含其他格式的数据,比如数组. 这就是一般的返回格式 {"root":[{"address":"shenzhen","company":"Bank of China","manager":"true","name":"Jack","password":& ...
Ext.fly(grid.getView().getRow(0)).slideIn('t'); //选择第一条有从上往下的插入效果 Ext.fly(grid.getView().getRow(0)).frame('#cadaf9',3);//选择一条记录带蓝色光晕效果 enableKeyEvents:true //激活键盘事件 ,TextField 的键盘事件默认是关闭的 cmp.el.mask('正在发送...', 'x-mask-loading'); //给组件上遮罩 cmp.el.unmask(); //隐藏遮 ...
Global site tag (gtag.js) - Google Analytics