- 博客(88)
- 资源 (29)
- 收藏
- 关注
转载 code sign
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/SubmittingYourApp/SubmittingYourApp.html#//apple_ref/doc/uid/TP40012582-CH9-SW1
2014-05-26 07:15:17
522
转载 证书介绍
主页 / 构建 Adobe AIR 应用程序 / 对 AIR 应用程序进行签名对 AIR 文件进行数字签名代码签名证书关于 AIR 代码签名关于 AIR 发行商标识符关于证书格式时间戳获取证书示例:从 Thawte 获取 AIR 开发人员证书更改证
2014-05-25 01:03:07
1414
转载 苹果多线程问题
Technical Note TN2109Simple and Reliable Threading with NSOperationThreads are a great way to solve a number of tricky problems. For example, if you have some long-running computation to do, y
2013-06-08 20:16:49
1728
转载 pop 到任意层
UINavigationController popToViewController可以指定UINavigationController跳转到某一个指定UIViewController控制器[self.navigationController popToViewController:[self.navigationController.viewControllers obj
2012-06-08 16:49:18
642
转载 读取本地图片
-(void)selectManyPhotos{ ALAssetsLibrary *library = [[ALAssetsLibraryalloc] init]; dispatch_async(dispatch_get_main_queue(), ^ { N
2012-06-06 15:04:48
518
转载 边框设置
UIImageView *imageView = [[UIImageViewalloc] initWithFrame:CGRectMake(50,50, 100, 100)]; imageView.image = [UIImageimageNamed:@"qipao1.png"]; imageView.layer.borderWidth =10;
2012-06-04 15:22:45
294
原创 代码 TabBar Navgation
UIViewController *viewController2 = [[UIViewControlleralloc] init]; UINavigationController *navController2 = [[UINavigationControlleralloc] initWithRootViewController:viewController2];
2012-06-04 14:49:30
331
原创 github 库记录
https://github.com/beetlebugorg/PictureMe 脸部识别https://github.com/sergiomtzlosa/faceWrapper-iphonehttps://github.com/ole/OBShapedButton 不规则按钮https://github.com/mattdonnelly/MDAudi
2012-05-22 09:57:24
313
转载 播放wav声音
static int i = 0; NSString *path; if(i%2==0) { path = [NSString stringWithFormat:@"%@%@",[[NSBundle mainBundle] resourcePath],@"/soundNumber.wav"]; } else {
2012-05-21 15:33:55
354
原创 URLConnection
#import @interface URLRequest : NSObject { id _delegate; SEL _action; NSString *_xml; NSMutableData *responseData; NSMutableURLRequest *request; NSURLConnection
2012-05-18 16:55:57
402
转载 旋转数组
int a[4][4]; int b[4][4]; int k=1; int i,j; for(i=0; i { for(j=0; j { a[i][j] = k++; printf("%8d ", a[i][j]); //
2012-05-16 10:33:24
240
原创 kvo
- (void)viewDidLoad { [super viewDidLoad]; [self addObserver:self forKeyPath:@"name" options:(NSKeyValueObservingOptionNew |NSKeyValueObservingOptionOld) context:nil]; self.name = @"wan
2012-05-15 15:11:31
222
转载 字符串 取变量
转自 http://www.cocoachina.com/bbs/read.php?tid=102887@interface ViewController : UIViewController{ NSString *a1; NSString *a2; NSString *a3;}@end- (void)viewDidLoad{
2012-05-15 10:14:52
357
原创 气泡屏保
- (void)viewDidLoad { [super viewDidLoad]; self.ballArray = [[NSMutableArray alloc] init]; [ballArray release]; for(int i =0;i { BubbleView *bubble = [[BubbleView all
2012-05-15 09:37:49
734
原创 时间 精确 到毫秒
NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss.SSS"; NSString *begin = [formatter stringFromDate:[NSDate date]]; NSLog(@"begin
2012-05-14 10:39:23
42242
原创 解决 黑色背景问题
#import @interface CustomerViewController : UIImagePickerController { UIToolbar *hortoolBar; UIToolbar *vertoolBar; UIImageView *vBackView; //垂直方向银色背景 UIImageView *hBackVi
2012-05-09 15:00:46
628
原创 自定义照相机
#import @interface CustomerViewController : UIImagePickerController { UIToolbar *hortoolBar; UIToolbar *vertoolBar; }@property (nonatomic,retain) UIToolbar *hortoolBar;@prop
2012-05-07 08:36:48
459
原创 willAnimateFirstHalfOfRotationToInterfaceOrientation 为什么没调用????
wThe default implementation of this method does nothing. If you override this method, you should not override either the willAnimateFirstHalfOfRotationToInterfaceOrientation:duration: or willAnimateSe
2012-05-04 14:36:03
891
原创 开源库
https://github.com/enormego/EGOTableViewPullRefreshhttps://github.com/enormego/EGOImageLoadinghttps://github.com/enormego/EGOCache)
2012-05-03 11:27:15
355
转载 中文 转 拼音
//// ChineseToPinyin.h// LianPu//// Created by shawnlee on 10-12-16.// Copyright 2010 lianpu. All rights reserved.//#import @interface ChineseToPinyin : NSObject { }
2012-05-02 14:35:14
36130
原创 代码收集
https://github.com/haqu/tweejump cocoa 开源游戏ABC123 is an interesting game for iPhone, iPod touch and iPad."Simple in concept. Brilliantly addictive. Maddeningly challenging." – TheYosh
2012-05-02 09:22:05
1022
转载 代码资源
搞了好久的ios开发,过程遇到各种各样的问题,基本都是靠百度+google,然后下载别人的开源代码来研究,下面列出一些常逛的ios开源代码网站,分享一下。cocoacontrols.com 收集了很多UI控件效果代码,缺点是需要翻墙,而且代码分类不够好。code4app.com,国内有个类似的,大部分代码来自github,但是做了中文翻译和效果截图,支持搜索,比较好用。缺点是代码还没有
2012-04-28 17:48:55
325
原创 imageView 添加手势失败原因
imageView = [[UIImageView alloc] initWithFrame:CGRectMake(8, 8, 200, 200)]; imageView.image = [UIImage imageNamed:@"d_citypick.png"]; imageView.userInteractionEnabled = YES; [self
2012-04-28 14:17:03
2846
原创 淡出效果
imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)]; imageView.image = [iBabyPubFunction ImageName:@"DefaultDay.png" IsPublic:NO Role:ROLE_UNKNOW]; image
2012-04-26 16:43:54
261
原创 缩放
//// PinchView.m// ViewDemo//// Created by wgd on 12-4-25.// Copyright 2012 __MyCompanyName__. All rights reserved.//#import "PinchView.h"#import @implementation PinchView
2012-04-25 17:16:47
397
转载 pbxuser
*.mode1v3*.pbxuser 这些文件,和项目代码没多大关系,和窗口布局,显示位置相关。 且包含断点信息转载自http://stackoverflow.com/questions/2373046/xcodeproj-filesup vote3down vote favorite share [g+] share
2012-04-24 17:41:46
981
转载 svn
SVN: How to resolve a conflict tutorialPosted by Charleson August 10, 2010 Leave a comment (4)Go to commentsThis tutorial is walkthough on how to resolve a conflict in svn (subversion)Firs
2012-04-24 16:54:03
958
转载 快速 打开模拟器文件夹 和去影藏
open /Users/wgd/Library/Application\ Support/iPhone\ Simulator/4.3/Applications 快速打开模拟器文件夹 open /Users/wgd/Library/Application\ Support/iPhone\ Simulator/4.3/Media/DCIM/10
2012-04-24 10:17:58
914
原创 CustomLable
#import @interface CustomerLable : UILabel { NSMutableAttributedString *mutaString;}@property (nonatomic,retain) NSMutableAttributedString *mutaString;- (NSAttributedString *)
2012-04-23 14:37:05
694
原创 UILable 库
https://github.com/AliSoftware/OHAttributedLabelUILabel是经常使用的一种控件,iOS上的UILabel已经能很好满足一些需求。比如设置对齐方式,换行模式等等。但如果需求是需要一串字符中不同的字符颜色,字体都单独设置,UILabel就无法满足了。那就自己来做个富文本Label好了。先创建继承UILabel的Attrib
2012-04-23 09:43:54
2600
原创 移动图片
-(void)chooseRect{ float newX=0,newY=0; CGRect newFrame; newX = sourceView.frame.origin.x + endPoint.x-beginPoint.x; newY = sourceView.frame.origin.y + endPoint.y-beginPoint.
2012-04-19 09:35:05
446
原创 截取 视图 部分 图片
/* * begin * 可以通过下边这段代码实现将myView中的图像抓取并保存成文件 */ UIGraphicsBeginImageContext(photoBackGround.frame.size); //@ 这里的myView可以换成其他的View,都可以得到这个View里的图像 CGContextRef cont
2012-04-19 08:37:26
320
原创 UIPinchGestureRecognizer
http://stackoverflow.com/questions/5647084/limit-maximum-scale-for-scaling-image-with-pinch-gesture-in-ios http://stackoverflow.com/questions/3406179/uipinchgesturerecognizer-zoom-out-zoom-in
2012-04-17 21:53:03
751
原创 图形api 函数解释
CGContextRef context = UIGraphicsGetCurrentContext(); // 获取图形环境CGContextSaveGState(context); //保存图形环境到堆栈CGContextTranslateCTM(context, 0, rect.size.height); //重新设置坐标点 原本点是 左下角(0,0)CGCont
2012-04-13 17:54:51
558
TMGBusUpdConfCallBohr121604final
2008-08-27
AT&T汇编语言与GCC内嵌汇编简介
2008-08-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人