- 博客(126)
- 收藏
- 关注
原创 iOS开发点滴-CABasicAnimation
CABasicAnimation *theAnimation; theAnimation=[CABasicAnimationanimationWithKeyPath:@"transform.scale"]; theAnimation.duration=0.1f; theAnimation.removedOnCompletion =NO;
2014-11-27 18:43:53 545
转载 iOS开发-截屏方法
1. UIGraphicsBeginImageContextWithOptions(pageView.page.bounds.size, YES, zoomScale); [pageView.page.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage
2014-11-10 13:28:42 734
转载 iOS点滴- ViewController详解
4、viewWillAppear 这个一般在view被添加到superview之前,切换动画之前调用。在这里可以进行一些显示前的处理。比如键盘弹出,一些特殊的过程动画(比如状态条和navigationbar颜色)。5、viewDidAppear 一般用于显示后,在切换动画后,如果有需要的操作,可以在这里加入相关代码。6、viewDidUnload Releasing ref
2014-11-09 07:37:44 8140
转载 Mac使用--截屏方法
Mac截图快捷键|浏览:32045|更新:2012-04-06 13:38MAC OSX 截图快捷键工具/原料MAC OS X即可步骤/方法1快捷键:2Shift+Command+3 截取全屏幕至桌面Shift+Comm
2014-10-30 13:48:27 121
转载 Mac使用--截屏方法
Mac截图快捷键|浏览:32045|更新:2012-04-06 13:38MAC OSX 截图快捷键工具/原料MAC OS X即可步骤/方法1快捷键:2Shift+Command+3 截取全屏幕至桌面Shift+Comm
2014-10-30 13:48:14 555
转载 Blender点滴-11个小技巧
Blender小技巧http://www.blenderguru.com/articles/11-useful-blender-tricks-you-may-not-know/#.VEm2yYuUe1l
2014-10-24 10:33:50 556
Win8系统安装msi文件时遇到问题,弹出两个对话框:The installer has encountered an unexpected error installing this package.this may indicate a problem with package.the error code is 2502.The installer has encounter
2014-10-11 06:52:37 123
Win8系统安装msi文件时遇到问题,弹出两个对话框:The installer has encountered an unexpected error installing this package.this may indicate a problem with package.the error code is 2502.The installer has encounter
2014-10-11 06:52:37 78
转载 iOS开发点滴-cocoapods在64bit编译
现在编写iOS程序,引用到第三方包,运用cocoapods进行包管理已经成为了一个趋势了,但是最近运用cocoapods构建的应用却在64bit的iOS7系统中有警告的产生,具体的警告信息如下面所示:Pods was rejected as an implicit dependency for ‘libPods.a’ because its architectures ‘i386’ d
2014-10-08 11:18:08 1653
转载 iOS开发--RegexKitLite编译报错
解决RegexKitLite编译报错转载▼标签: it 在编译RegexKitLite的时候,报错如下:Undefined symbols for architecture i386:"_uregex_open", referenced from:_rkl_getCachedRegex in R
2014-09-23 15:49:07 1397
转载 iOS开发--AFJSONRequestSerializer
NSMutableDictionary *dict=[[NSMutableDictionary alloc]init]; [dict setObject:@"apple" forKey:@"brand"];NSString *url=@"http://xxxxx";//你的接口地址 AFHTTPRequestOperationManager *manager = [A FHTT
2014-09-17 12:09:49 11163
转载 iOS开发点滴-CocoaPods安装和使用教程
CocoaPods安装和使用教程http://code4app.com/article/cocoapods-install-usage
2014-08-13 12:00:32 485
原创 ios开发点滴-ios7系统以上mac地址获取为假地址
2014-07-21 14:42:00.096 Dettol[424:60b] Mac Address: 02:00:00:00:00:002014-07-21 14:42:00.099 Dettol[424:60b] macaddress==02:00:00:00:00:00
2014-07-21 14:38:57 1507
翻译 iOS点滴-How do I size a UITextView to its content?
stackflow 上的怎- (void)textViewDidChange:(UITextView *)textView{ CGFloat fixedWidth = textView.frame.size.width; CGSize newSize = [textView sizeThatFits:CGSizeMake(fixedWidth, MAXFLOAT)]; C
2014-07-10 11:50:12 425
转载 ios开发点滴-icon的使用
iOS icon的使用和设置 (2013-03-11 11:51:18)标签: ios icon iphone图标 程序发布用图标 it分类: iOS笔记icon图标是ios程序包必需的一部分,每个程序都要包含正确的iocn图标,否则将不能通过苹果的审核,下面就讲解一下i
2014-06-20 14:55:21 1139
转载 iOS开发点滴-ShareSDK(iOS版)开发实践:自定义授权视图和分享视图导航栏
最近很多人问ShareSDK的授权视图和分享视图的导航栏样式与应用风格不一致,能否修改导航栏的样式?那么这里我就2.6.1版本进行说明(还在使用1.x版本的朋友建议升级到2.x版本,在新版本中可定制的东西比旧版本更多更灵活哦)。 其实要修改导航栏需要在分享接口(showShareActionSheet或者showShareView)中指定authOptions的viewDelega
2014-06-17 05:56:23 4528 1
原创 iOS开发点滴-“to prevent warning from “PerformSelect may cause a leak because its selector is unknown””
#pragma clang diagnostic push#pragma clang diagnostic ignored "-Warc-performSelector-leaks" UIImage *resultImage2 = [_imageperformSelector:NSSelectorFromString(@"e2")]; UIImage *resultIm
2014-06-11 13:30:50 759
翻译 U3D开发点滴-射线的使用
using System;/// /// Ray Test 的摘要说明/// 射击是否击中目标/// public class RayTest{ public Transform shotT; public void Shoot() { //设置射线的起始点 Ray ray = new
2014-06-09 06:26:31 2316
翻译 U3D开发点滴-摄像机跟随
using System;/// /// 摄像机的跟随/// 添加到Camera对象/// public class GameCamera{ public Vector3 cameraTarget; //目标物体的transform组件 private Transform target; void Start()
2014-06-08 09:04:35 4493
翻译 U3D开发点滴-敌人基础类
public class Entity:MonoBehaviour { public float health; public virtual void TakeDamage(float dmg) { health -= dmg; if (health
2014-06-08 08:54:25 814
翻译 U3D开发点滴-延迟物体消失
代码如下:public class Fade:MonoBehaviour{private bool fading;//设置物体存活时间,后然后消失public float lifTime = 1;//物体原本的颜色private Color originalCol;//物体的开始消失的时间private float deathTime;//物
2014-06-08 08:23:23 2841
原创 iOS开发点滴-GameCenter报错问题
Error retrieving player info: The requested operation could not be completed due to an error communicating with the server.可能情况就是
2014-05-09 11:55:55 722
翻译 U3D点滴-Coroutines
原文引用:http://unitypatterns.com/introduction-to-coroutines/
2014-04-10 12:21:09 581
翻译 ios开发点滴-rejected for using the Ad support framework错误
当遇到rejected for using the Ad support framework.类似这样的错误的时候打开终端到项目根目录 输入: "grep -r advertisingIdentifier ."
2014-02-24 12:13:31 846
转载 iOS开发点滴-ALAssetsLibrary
利用asseturl来获取图片 ALAssetsLibrary *lib = [[ALAssetsLibrary alloc] init]; [lib assetForURL:[NSURL URLWithString:assetUrl] resultBlock:^(ALAsset *asset){//在这里使用asset来获取图片}failureBlock:^(NSError
2014-01-08 18:26:07 1204
转载 iOS点滴-openSSH使用
OpenSSH for iOS 简介OpenSSH是一个在Linux下很实用的一个软件。iPhone本身就是一个运行BSD系统(可认为是一种Liunx)的硬件,因此,cydia的作者Saurik把OpenSSH这一软件移植到了iOS平台上,并且简化了安全认证密钥的繁琐,使之成为一款可以在iPhone上运行的Cydia软件。OpenSSH用途:在PC或者Mac上远程输入命令操
2013-12-31 15:52:59 6886
转载 iOS开发点滴-网络流量
+ (NSArray *)getDataCounters{ BOOL success; struct ifaddrs *addrs; const struct ifaddrs *cursor; const struct if_data *networkStatisc; int WiFiSent = 0; int WiF
2013-12-30 13:16:42 1008
转载 iOS开发点滴-iOS5: Saving photos in custom photo album
http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/
2013-12-26 17:03:22 660
原创 iOS开发点滴-添加阴影效果
UIBezierPath *shadowPath = [UIBezierPathbezierPathWithRect:imageView.bounds]; imageView.layer.masksToBounds =NO; imageView.layer.shadowColor = [UIColorblackColo
2013-12-16 15:10:38 10908
转载 iOS开发点滴-对于[iOS6.0, iOS6.1) UIImagePickerController
参考网址:http://blog.devtang.com/blog/2013/10/15/objective-c-object-model/#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericS
2013-12-04 18:17:57 617
转载 iOS开发点滴-编写高质量的Objective-C代码
此文转载自http://www.cnblogs.com/xdream86/p/3309345.html点标记语法属性和幂等方法(多次调用和一次调用返回的结果相同)使用点标记语法访问,其他的情况使用方括号标记语法。良好的风格:view.backgroundColor = [UIColor orangeColor];[UIApplication sharedApplicatio
2013-12-04 15:58:18 1452
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人