摘要: http://xiaominghimi.blog.51cto.com/2614927/826616 阅读全文
posted @ 2012-06-04 21:17 Lost in code 阅读(229) 评论(0) 推荐(0) 编辑
摘要: http://www.apkbus.com/android-54957-1-1.html 阅读全文
posted @ 2012-06-04 21:00 Lost in code 阅读(186) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/maojudong/article/details/7261986 阅读全文
posted @ 2012-06-04 16:55 Lost in code 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1. 导航栏的背景颜色 : navigationController.navigationBar.tintColor = [UIColor colorWithRed:(21.0/255.0) green:(153.0 / 255.0) blue:(224.0 / 255.0) alpha:1]; 阅读全文
posted @ 2012-05-31 13:09 Lost in code 阅读(173) 评论(0) 推荐(0) 编辑
摘要: NSDate获取当前时区的时间[NSDate date]获取的是GMT时间,要想获得某个时区的时间,以下代码可以解决这个问题NSDate*date = [NSDatedate];NSTimeZone*zone = [NSTimeZonesystemTimeZone];NSIntegerinterval = [zonesecondsFromGMTForDate: date];NSDate*localeDate = [datedateByAddingTimeInterval: interval]; NSLog(@"%@", localeDate); 阅读全文
posted @ 2012-05-31 10:52 Lost in code 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Vincent iOS/iPhone学习系列、代码教程----~~~持续更新中~~~http://www.devdiv.com/thread-48165-1-1.htmlpart 1--入门: 1. xcode 版本下载 以及 iphone sdk 下载: 最新版本在此下载: http://developer.apple.com/devcenter/ios/index.action 其他版本请看 http://connect.apple.com/cgi-bin ... 1.0.1.1.0.3.3.3.3.1 2. 入门教程: http://www.devdiv.com/thread-4649. 阅读全文
posted @ 2012-05-30 17:02 Lost in code 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 在使用UIBarButtonItem 系统提供的几个函数的时发现添加背景图片后会有个小框,而且很难去掉,影响效果,而且UIBarButtonItem好像不能使用frame 的属性,所以可以下面方法定制自己的UIBarButtonItem UIImage*image=[UIImageimageNamed:@"绑定弹出-返回.png"];CGRectframe_1=CGRectMake(0,0,image.size.width,image.size.height-4);UIButton*backButton=[[UIButtonalloc]initWithFrame:frame 阅读全文
posted @ 2012-05-22 13:57 Lost in code 阅读(2209) 评论(0) 推荐(0) 编辑
摘要: 摘自:iphone 控件一 视图UIView和UIWindowiphone视图的规则是:一个窗口,多个视图。UIWindow相当于电视机,UIViews相当于演员。1.显示数据的视图下面几个类可在屏幕上显示信息:UITestView:将文本段落呈现给用户并/允许用户使用键盘输入自己的文本。可设置可编辑或不可编辑,使用单一字号和单一字体。UILabel:实例呈现段的只读文本视图。UIImageViews:显示图片。UIWebWiew:显示HTML,PDF或其他高级Web内容。MKMapViews:想应用程序中嵌入地图。UIScrollView:实例支持呈现比正常应用程序窗口大小大一些的内容,滚动 阅读全文
posted @ 2012-05-22 09:14 Lost in code 阅读(717) 评论(0) 推荐(0) 编辑
摘要: +(UIImage *)getImage:(NSString *)videoURL{ NSDictionary *opts = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:AVURLAssetPreferPreciseDurationAndTimingKey]; NSURL *url = [[[NSURL alloc] initFileURLWithPath:videoURL] autorelease]; AVURLAsset *urlAsset = [AVURL... 阅读全文
posted @ 2012-05-18 15:22 Lost in code 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 文件位置:可以在platform/build/target/product/security/中找到platform.pk8 platform.x509.pem等签名文件,对应不同的权限。signapk.jar:由/platform/build/tools/signapk/编译产出,可以在/out/host/linux-x86/framework/中找到。签名:java -jar signapk.jar platform.x509.pem platform.pk8 MyDemo.apk MyDemo_signed.apk 得到具有对应权限的APK优化APK:zipalign -v 4 MyDe 阅读全文
posted @ 2012-05-09 15:27 Lost in code 阅读(757) 评论(0) 推荐(0) 编辑