iOS
文章平均质量分 58
黑心老人
这个作者很懒,什么都没留下…
展开
-
ios CGAffineTransformRotate 无限旋转
从stackoverflow上看的,需要的拿去吧- (void)start{ if (!isStart) { isStart = YES; [selfspinWithOptions: UIViewAnimationOptionCurveEaseIn]; }}- (void)stop{转载 2013-09-17 13:18:58 · 6911 阅读 · 0 评论 -
IOS 开发随笔
中文->UFT-8;UFT-8->中文NSString *name =@"你好";NSString *utf8name = [namestringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];NSString *nickname = [utf8namestringByReplacingPerc原创 2013-12-29 10:57:41 · 563 阅读 · 0 评论 -
IOS ProtoBuf 环境搭建
iOS mac oc protobuf protoc原创 2015-02-25 16:36:22 · 821 阅读 · 0 评论 -
iOS 开发常用命令
清理svn locked find . -name lock -type f -exec rm -f {} \;原创 2013-11-18 22:52:50 · 772 阅读 · 0 评论 -
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contai
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 660.5]'//调用栈0 CoreFoundation __exceptionPreprocess + 1621 libobjc.A.dylib objc原创 2014-03-23 20:53:13 · 2427 阅读 · 0 评论 -
SQLite学习手册(数据表和视图)
转自:http://www.cnblogs.com/stephen-liu74/archive/2012/01/13/2321668.html一、创建数据表: 该命令的语法规则和使用方式与大多数关系型数据库基本相同,因此我们还是以示例的方式来演示SQLite中创建表的各种规则。但是对于一些SQLite特有的规则,我们会给予额外的说明。注:以下所有示例均是在sqlite自带命令转载 2014-03-17 14:44:39 · 495 阅读 · 0 评论 -
ios7 毛玻璃效果
转自:http://www.cocoachina.com/applenews/devnews/2014/0210/7793.html转载 2014-02-18 21:13:33 · 591 阅读 · 0 评论 -
iOS 播放 gif
http://www.cnblogs.com/smileEvday/archive/2013/03/28/Gif.htmlSvGifView//// SvGifView.h// SvGifSample//// Created by maple on 3/28/13.// Copyright (c) 2013 smileEvday. All r转载 2014-02-08 16:56:15 · 721 阅读 · 0 评论 -
用class-dump导出ios7下所有库头文件(包括私有库)
class-dump创建*.sh文件,写入一下内容#!/bin/sh#commentscd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/filelist原创 2014-01-31 11:16:20 · 1279 阅读 · 0 评论 -
iOS 工程 copy 问题
有时候要把工程原封不动的做个copy 结果build 就error了,什么情况?是xcode不认lib库了,试试remove 再 add原创 2014-01-14 10:48:31 · 515 阅读 · 0 评论 -
umeng随笔
"_compress2", referenced from:在主工程下导入 libz.dylib原创 2013-11-28 12:36:31 · 577 阅读 · 0 评论 -
IOS 开发 自定义插件 PhoneGap Plugin 2.9.0
转自:http://moduscreate.com/building-a-custom-phonegap-plugin-for-ios/Building a custom PhoneGap plugin for iOSMany of us are used to developing mobile HTML5 applications with various fr转载 2013-11-22 19:32:21 · 2282 阅读 · 0 评论 -
IOS 开发之设置UIButton的title
转载自:http://hi.baidu.com/myyuchong/item/0d5a7e7656b9f234714423da自己留着好随时拿来就用btn.frame = CGRectMake(x, y, width, height);[btn setTitle: @"search" forState: UIControlStateNormal];转载 2013-11-22 10:48:01 · 665 阅读 · 0 评论 -
iOS 发邮件两种方式
#import 头文件.h中引入以上header并加上delegate MFMailComposeViewControllerDelegate>.m实现-(void)sendEMail:(NSString *)email{ Class mailClass = (NSClassFromString(@"MFMailComposeViewControlle转载 2013-11-22 10:44:36 · 766 阅读 · 0 评论 -
iOS 检查网络状态 2G3G4G 私有方法
typedef enum { NETWORK_TYPE_NONE=0, NETWORK_TYPE_2G=1, NETWORK_TYPE_3G=2, NETWORK_TYPE_4G=3, NETWORK_TYPE_5G=4,// 5G目前为猜测结果 NETWORK_TYPE_WIFI=5,} NETWORK_T转载 2015-04-24 22:27:13 · 523 阅读 · 0 评论