`
liubo0_0
  • 浏览: 20226 次
社区版块
存档分类
最新评论
文章列表
iOS高效开发必备的10款Objective-C类库: http://mobile.51cto.com/hot-249831.htm 学习。 http://blog.colcy.com/page/3/ http://unmi.cc/ http://blog.sina.com.cn/s/blog_839676880100xmop.html http://www.siverchen.com/category/mobile/ios UIKit介绍 http://never2012.blog.163.com/blog/static/2008810722011111334050 ...
转自:http://www.cocoachina.com/iphonedev/sdk/2010/1011/2159.htm 1,下载的数据直接保存到内存或文件系统里 2,提供直接提交(HTTP POST)文件的API 3,可以直接访问与修改HTTP请求与响应HEADER 4,轻松获取上传与下载的进度信息 5,异步请求与队列,自动管理上传与下载队列管理机 6,认证与授权的支持 7,Cookie 8,请求与响应的GZIP 9,代理请求 下面来两个ASIHTTPRequest的小例子: NSURL *url = [NSURL URLWithString:@"h ...
/var/mobile/Library/LockBackground.jpg /User/Library/LockBackground.png and then call notify_post(" com.apple.language.changed") 其实发别的改变也一样 就是通知系统有改变 他就会重新刷一次 这样才能载入你重写的图片
添加 addSubview: 插入http://write.blog.csdn.net/postedit inser tSubview:atIndex: (放到index层,越往下,index越小) inser tSubview:aboveSubview:(把前一个View放在后一个View 的上面) inser tSubview:belowSubview:(把前一个View放在后一个View 的下面) 整理 bringSubviewToFront: (把一个View放到上面) sendSubviewToBack:(把一个View放到下面) exchangeSubviewAtI ...
在 UIView 中有一个autoresizingMask的属性,它对应的是一个枚举的值(如下),属性的意思就是自动调整子控件与父控件中间的位置,宽高。 enum { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 << 0, UIViewAutoresizingFlexibleWidth = 1 << 1, UIViewAutoresizingFlexibleRightMargin = 1 << 2, UIViewAutoresizingFlexi ...
给大家一个问题,如何给view添加背景图片?也许在你的脑中一下子会又N多方法,但是这里想介绍的是一种使用“内置”的方法,可以省去大家不少的代码。 UIView有这样一个属性 @property(nonatomic,copy)UIColor*backgroundColor;// default is nil 以想到UIColor,可能大家都只是想到到UIColor只能设置纯色,但是UIColor就有很多神奇的地方! + (UIColor *)colorWithPatternImage:(UIImage *)image; 这个方法就可以产生一个基于图片的颜色,更加精确地说是Pattern, ...
UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(200, 200, 400,20)]; CGAffineTransform rotation = CGAffineTransformMakeRotation(M_PI*1.5); [slider setTransform:rotation]; [self.view addSubview:slider];
滚动条只是显示作用,不能点击拖动。 当然可以根据自定义样式。 想法很简单,就是在UIScrollView里面先增加一个竖条,在增加一个图标。 通过移动UIScrollView里面的坐标,来实现图标移动的效果。 UIScrollView *leftScroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 40, 200, 630)]; leftScroll.delegate = self; leftScroll.showsVerticalScrollIndicator = NO; leftScroll.bounces = N ...
for (UIView *subview in searchBar.subviews) { if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")]) { [subview removeFromSuperview]; break; } } 如果想自定义背景样式 UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"40-di.png"]]; [my ...
UIPopoverController *popViewController = [[UIPopoverController alloc] initWithContentViewController:exchange_ViewController]; popViewController.contentViewController.view.backgroundColor = [UIColor whiteColor]; [popViewController setPopoverContentSize:CGSizeMake(400, 430) animated:YES]; popViewCon ...
在上一篇《iOS Programming – 触摸事件处理(1)》中了解触摸、事件和响应者之后,接下去学习如何处理用户的触摸事件。首先触摸的对象是视图,而视图的类UIView继承了UIRespnder类,但是要对事件作出处理,还需要重写UIResponder类 ...
iphone/ipad无键盘的设计是为屏幕争取更多的显示空间,大屏幕在观看图片、文字、视频等方面为用户带来了更好的用户体验。而触摸屏幕是iOS设备接受用户输入的主要方式,包括单击、双击、拨动以及多点触摸等,这些操作都会产生触摸事件。 在Cocoa中,代表触摸对象的类是UITouch。当用户触摸屏幕后,就会产生相应的事件,所有相关的UITouch对象都被包装在事件中,被程序交由特定的对象来处理。UITouch对象直接包括触摸的详细信息。 UITouch类中包含5个属性: window:触摸产生时所处的窗口。由于窗口可能发生变化,当前所在的窗口不一定是最开始的窗口。
@interface DragView : UIImageView { CGPoint startLocation; } @end @implementation DragView - (id) initWithImage: (UIImage *) anImage { if (self = [super initWithImage:anImage]) self.userInteractionEnabled = YES; return self; } - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent* ...
在用log4j生成日志的时候,开发环境就可以,可以打成War包后,就不可以.这个问题,我找了一天,才解决. 其实问题不大,就是平时没有注意到. 我是把log4j放到一个servlet中初始化.之前的写法是: String prefix = getServletContext().getRealPath("/"); String file = getInitParameter("log4j-init-file"); if(file != null) {   PropertyConfigurator.configure(p ...
在Tomcat 移植到 weblogic10后,遇到了很多的错误,并都已经解决. 1.验证码的问题 之前在Tomcat的运行环境下,我是通过JSP来实现的,可移植到weblogic后,发现验证码的图片看不见. 解决办法:把生成验证码的代码,放到servlet中,不要再jsp文件中生成. 2.ClassNotFoundException: org.hibernate.hql.ast.HqlToken异常 在一个批量查询时,Tomcat环境下运行没有问题,weblogic就报异常. 解决办法:网上写了很多,我也试过很多.只有其中一个让我试出来.其他的好像多多少少都有一些问题. ...
Global site tag (gtag.js) - Google Analytics