自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (1)
  • 收藏
  • 关注

原创 App Icons on iPad and iPhone

<br />App Icons on iPad and iPhoneQ: How are the icon files in my application bundle used on iPad and iPhone?<br />A: Below are guidelines for handling icon files for iPhone-only apps, iPad-only apps, and universal apps.<br />IMPORTANT: Icons marked with "

2010-08-17 14:18:00 670

原创 App Icons on iPad and iPhone

<br />App Icons on iPad and iPhoneQ: How are the icon files in my application bundle used on iPad and iPhone?<br />A: Below are guidelines for handling icon files for iPhone-only apps, iPad-only apps, and universal apps.<br />IMPORTANT: Icons marked with "

2010-08-17 14:18:00 443

原创 App Icons on iPad and iPhone

<br />App Icons on iPad and iPhoneQ: How are the icon files in my application bundle used on iPad and iPhone?<br />A: Below are guidelines for handling icon files for iPhone-only apps, iPad-only apps, and universal apps.<br />IMPORTANT: Icons marked with "

2010-08-17 14:17:00 1007

原创 App Icons on iPad and iPhone

<br />App Icons on iPad and iPhoneQ: How are the icon files in my application bundle used on iPad and iPhone?<br />A: Below are guidelines for handling icon files for iPhone-only apps, iPad-only apps, and universal apps.<br />IMPORTANT: Icons marked with "

2010-08-17 14:17:00 451

原创 反编译android apk

找到Android软件安装包中的class.dex:把apk文件改名为.zip,然后解压缩其中的class.dex文件,它就是java文件编译再通过dx工具打包成的。 工具准备:1、把dex文件反编译为jar文件的工具。(dex2jar)http://code.google.com/p/dex2jar/downloads/list  2、把jar反编译为java的工具。(JD-GUI)http://java.decompiler.free.fr/?q=jdgui 反编译步骤:1、把class.dex拷贝

2010-08-15 10:48:00 651

转载 点击iPhone屏幕,大头针落在触点的代码

<br />如果您希望在 iPhone 应用里加入手动添加大头针的功能,即手指点击屏幕,在接触点上落下一颗大头针,可以看看 CocoaChina 会员“parkerjj”分享的代码<br />- (MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:(id <MKAnnotation>)annotation<br />{<br />    MKPinAnnotationView *pinView = nil;<br />    if(an

2010-07-17 14:16:00 1179

原创 高阶快捷键组合

<br />alt+cmd   +上<br />alt+cmd   +左/右 (sdk3.0之后有不同)<br /><br />alt+左/右<br />control+左/右<br />cmd+左/右<br /><br />alt+shift+左/右<br />control+shift+左/右<br />cmd+shift+左/右<br /><br />control+shift+e<br /><br />alt+delete<br />control+ delete<br />cmd+delete<b

2010-07-13 09:54:00 902

原创 iPhone 文件读写

对于一个运行在iPhone得app,它只能访问自己根目录下得一些文件(所谓sandbox).一个app发布到iPhone上后,它得目录结构如下:1、其中得 app root 可以用 NSHomeDirectory() 访问到;2、Documents 目录就是我们可以用来写入并保存文件得地方,一般可通过:NSArray *paths = NSSearchPathForDire

2009-12-09 23:19:00 653

转载 Core Image 学习笔记 - 为照片加边框和EXIF信息

Core Image 学习笔记 - 为照片加边框和EXIF信息。http://blog.codingmylife.com/?p=572,433 views, Cocoa, by Allen Dang.最近迷上了摄影,拍了很多照片之后就想上传跟大家分享。到色影无忌和几个摄影论坛上一看,发现很多人的照片都有不错的边框、水印和拍摄信息(相机类型、光圈、快门、拍摄日期等等…

2009-10-22 13:38:00 2444

转载 How to open UITextView web links in a UIWebView instead of Safari?

http://stackoverflow.com/questions/1305544/how-to-open-uitextview-web-links-in-a-uiwebview-instead-of-safari The simplest way is to override thewebView:decidePolicyForNavigationAction:request:fr

2009-10-16 10:30:00 1428

转载 iPhone 文件读写

对于一个运行在iPhone得app,它只能访问自己根目录下得一些文件(所谓sandbox).一个app发布到iPhone上后,它得目录结构如下:1、其中得 app root 可以用 NSHomeDirectory() 访问到;2、Documents 目录就是我们可以用来写入并保存文件得地方,一般可通过:NSArray *paths = NSSearchPathForDire

2009-10-14 15:00:00 1424

转载 UIImagePickerController

1.你無法得知在相簿中該相片的檔名2.這是我之前的作法,提供您參考:[code]- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo{    //將ImagePicke

2009-10-12 11:35:00 966

转载 UIImagePickerController

 http://blog.airsource.co.uk/index.php/2008/11/11/views-of-uiimagepickercontroller/ Well the new 3.1 OS certainly makes it a lot nicer to change the UI for the UIImagePickerControllerOverlayVi

2009-10-12 11:28:00 903

转载 IPhone短信相关部分研究

http://garfieldfox.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&_c=BlogPart&partqs=cat%3DIPhone短信发送和截获方式一:打开/dev/tty.debug使用AT命令操作,这类代码最早的出现在一些开源项目中,改改基本能用,现有的版本用的就是这种方式。缺点:机器必须破解并必须安装到

2009-10-08 14:01:00 1022

转载 Creating a UIImage from a CGLayer ,通过CGLayer穿件UIImage

CGLayers are great for drawing - especially when things need to be drawn over and over again. Converting a CGLayer to a UIImage is another story, though. NetSketch uses CGLayers for the drawing canv

2009-10-07 12:03:00 992

转载 UIView move animation

- (void)setHoverViewMovedUp:(BOOL)movedUp  {      [UIView beginAnimations:nil context:NULL];      [UIView setAnimationDuration:0.3];        CGRect rect = self.seqHoverView.frame;      if

2009-10-05 11:06:00 870

转载 怎样在程序里把png的图片处理成圆角显示。

- (UIImage *) roundCorners: (UIImage*) img{    int w = img.size.width;    int h = img.size.height;        CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();    CGContextRef context = CGBitmap

2009-10-02 10:44:00 1800

转载 viewForFooterInSection

http://stackoverflow.com/questions/838266/how-do-i-add-a-uibutton-or-uiswitch-in-tableviewviewforfooterinsection // Need to refactor so that the label is Public Sharing and Priviate Sharing and th

2009-09-24 22:39:00 3267

转载 openURL能帮助你运行Maps,SMS,Browser,Phone甚至其他的应用程序

openURL能帮助你运行Maps,SMS,Browser,Phone甚至其他的应用程序。这是Iphone开发中我经常需要用到的一段代码,它仅仅只有一行而已。    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];这个程序通过基础的协议支持拨打电话的功能译者附:    -(I

2009-09-17 17:37:00 1410

转载 How To Read a File From Your Application Bundle

 First you need to add your file to the Resources folder of your Xcode project. Then you can access the file like this (assuming the file is called MyFile.txt):NSString *filePath = [

2009-09-17 17:33:00 636

转载 网络代码

几个网络代码隐藏了真实的服务器IP1、采用CFHTTPMessage等复制代码        CFURLRef myWebserverURLRef = CFURLCreateWithString(kCFAllocatorDefault, CFSTR("http://192.168.0.1234"), NULL);    if(myWebser

2009-09-15 23:08:00 2012

转载 NSStream来实现Socket

使用NSStream来实现Socket(写的不好的地方,请多批评~)这玩意儿已经折腾我小半年了,因为没有socket开发方面的经验,跌跌撞撞遇到了不少麻烦。以下是目前应用在我程序中的Stream类,真机真网络使用正常,3G和wifi都可以用。只是回调部分写的比较外行……应该还有更好的回调方式。以下代码除了SynthesizeSingleton.h外,都是从我自己的代码里一行一行挑出

2009-09-15 23:04:00 2206

原创 简单实现异步下载

异步:(需要实现delegate)NSURLConnection 类:+ (NSURLConnection *)connectionWithRequest:(NSURLRequest *)request delegate:(id)delegate;delegate 方法:接收数据:- (void)connection:(NSURLConnection *)connection

2009-09-15 23:00:00 706

原创 iphone post data

 #define d_LocalNetAddress http://XXX.XXX.XXX.XXX/a.action        NSString * content = @"Test";        NSInputStream * nis = [[NSInputStream alloc] initWithData:[content dataUsingEncoding:NS

2009-09-15 22:55:00 1386

原创 在iphone上NSTimer的使用!

NSTimer  *mTimer = [NSTimer scheduledTimerWithTimeInterval:0.1   target:self selector: @selector(moveUp:) userInfo:nil repeats:YES]; -(void

2009-09-04 10:14:00 497

转载 UIImage得一个Category, Resizes(调整尺寸)

写在最前边: Category得用法很方便, 举例来说: 新建一个Class文件, 文件名随意需要建立UIImage得Category就按照如下格式添加函数,括号内名称随意, 这种格式, 编译器即认为是一个Category@interface UIImage (Category)/** Resizes and/or rotates an image.*/- (UIImage

2009-08-31 16:58:00 602

原创 iphone中处理Gif文件

直接用UIWebView播放gif图片UIWebView  *webView;NSString  *html= [NSString stringWithFormat:@""]; //或者写成 , Test.gif[webView loadHTMLString: html baseURL: nil];

2009-08-31 14:19:00 943

原创 iPhone中对UIImage对象处理的常用方法

(一)根据给定得图片,从其指定区域截取一张新得图片 -(UIImage *)getImageFromImage{ //大图bigImage //定义myImageRect,截图的区域 CGRect myImageRect = CGRectMake(10.0, 10.0, 57.0, 57.0); UIImage* bigImage= [UIImage

2009-08-31 13:30:00 11524 1

索爱手机开发资料

相关索爱手机的资料,包括私有属性等等

2008-03-06

空空如也

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

TA关注的人

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