自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 问答 (1)
  • 收藏
  • 关注

原创 Xcode:duplicate declaration of method 'XXX'

额...有人问我,Duplicate 是不是double很像! 对就是复制的意思就是你方法名重复了而已!

2016-05-21 12:41:31 5915

原创 Xcode7 安装VVDocumenter-Xcode步骤

Xcode7 安装VVDocumenter-Xcode步骤第一步:下载项目Clone该项目:plug-in ,运行该项目后将其关闭;第二步:终端执行在终端先执行 defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID,再拷贝字符串;第三步

2016-05-18 06:25:15 456

原创 Python3.4的面向对象

class Hello: # 构造方法 + 传入一个参数 def __init__(self,name): self.name = name def sayHello(self): print("Hello {0}".format(self.name))# 继承class Hi(Hello): def __init__(sel

2016-04-24 23:17:22 433

转载 开发证书配置详解

引言        关于开发证书配置(Certificates & Identifiers & Provisioning Profiles),相信做iOS开发的同学没少被折腾。对于一个iOS开发小白、半吊子(比如像我自己)抑或老兵,或多或少会有或曾有过以下不详、疑问、疑惑甚至困惑:什么是App ID?Explicit/Wildcard App ID有何区别?什么是App Group

2016-03-16 11:22:07 2001

翻译 常用的排序算法整理

//常用的排序算法  #include  using namespace std;    typedef int ElemType;    /* 1、插入排序 (1)直接插入排序算法 算法思想:将等排序列划分为有序与无序两部分,然后再依次将无序部分插入到已经有序的部分,最后  就可以形成有序序列。 操作步骤如下: 1)查找出元素L(i)在表中的

2016-03-08 14:22:21 402

原创 OC在声明属性时的写法@interface的区别

OC在声明属性时的写法,总结出来有三中方式方式一:直接在@interface中的大括号中声明。@interface HotelEntity : NSObject{    NSArray      *rooms;    NSArray      *services;    NSArray      *BaseServices;    NSArray      *p

2016-02-18 17:07:14 795

原创 怎样激活Mac OS X操作系统的开发模式( Enable Developer Mode on this Mac?)

命令行DevToolsSecurity -enable

2016-01-28 15:41:34 1304

原创 OC-CoreGraphics - CGGeometry.h详解

/* CoreGraphics - CGGeometry.h   Copyright (c) 1998-2011 Apple Inc.   All rights reserved. */#ifndef CGGEOMETRY_H_#define CGGEOMETRY_H_#include #include #include #include #includ

2016-01-26 13:38:53 801

原创 coreData中integer16,integer32,integer64的区别

Integer 16 can have minimum value of -32,768 to 32,767Integer 32 can have minimum value of -2,147,483,648 to 2,147,483,647Integer 64 can have minimum value of -very large to very large

2015-12-09 18:06:51 3887

原创 Incompatible integer topointer conversion assigning to 'BOOL *' (aka 'signed char *') from'BOOL' (a

Incompatible integer topointer conversion assigning to 'BOOL *' (aka 'signed char *') from'BOOL' (aka 'signed char')解决办法: 检查 BOOL*换为BOOL就可以了,检查是不是多写一个  *  号。

2015-12-09 10:40:46 3506

原创 IOS之nil,Nil,null,Null,NULL,NSNull

1、nil: 指向一个对象的空指针;2、Nil:指向一个类的空指针;3、NSNull:通常表示集合中的空值;[NSNull null]用来在NSArray和NSDictionary中加入非nil(表示列表结束)的空值.   [NSNull null]是一个对象,他用在不能使用nil的场合。NSNull只有一个方法:+ (NSNull *) null, 表

2015-12-06 21:50:06 480

原创 正则表达式表

元字符描述\将下一个字符标记符、或一个向后引用、或一个八进制转义符。例如,“\\n”匹配\n。“\n”匹配换行符。序列“\\”匹配“\”而“\(”则匹配“(”。即相当于多种编程语言中都有的“转义字符”的概念。^匹配输入字符串的开始位置。如果设置了RegExp对象的Multiline属性,^也匹配“\n”或“\r”之后的位置

2015-11-27 10:53:46 470

原创 Local declaration of 'XXX' hides instance variable

黄色的变量名与外部某个变量名一样, 极容易被开发者混淆, XCODE好心提示, 这个问题不大, 注意命名即可.

2015-11-23 20:06:00 624

原创 C语言的错误大全及中文解释

1: Ambiguous operators need parentheses — 不明确的运算需要用括号括起2: Ambiguous symbol xxx — 不明确的符号3: Argument list syntax error — 参数表语法错误4: Array bounds missing — 丢失数组界限符5: Array size toolarge — 数组尺寸太大

2015-11-13 14:11:51 1728 1

原创 Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be

“Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread”,一旦出现这个错误,程序会立即crashed。这是个非常著名的BUG,apple不允许

2015-11-11 17:47:31 1182

原创 Xcode报错:Undefined symbols for architecture armv7s:"_OBJC_CLASS_$_AMapView", referenced from:objc-c

Undefined symbols for architecture armv7s:"_OBJC_CLASS_$_AMapView", referenced from:  objc-class-ref in libMAMapKit.a(MAMapView.o)ld: symbol(s) not found for architecture armv7s错误原因:引用自XX.a静态库的XX类

2015-11-10 18:49:51 1657

原创 XCODE报错-真机调试

关于在真机上测试出现提示真机版本过低问题No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simul

2015-10-02 13:28:35 552

原创 解决"The underlying connection was closed: A connection that was expected to be kept alive was closed"

关于”The underlying connection was closed: A connection that was expected to be kept alive was closed”通常都在移动客户端,但是是有服务器端报送的,而且在客户端也不会经常报错,这只是一个偶尔会出现的问题,可以说是一个棘手的BUG,因此我的这个文章也只能决绝部分人的问题(针对手机客户端),如果调试还有问题,

2015-09-13 03:38:04 22647

空空如也

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

TA关注的人

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