最新发布 第1038页

Code Bye技术改变世界,梦想驱动人生!

iOS

一个cell里多个imageView点击事件

一个cell里多个imageView点击事件
一个tableViewCell 里添加了三个imageView ,分别通过代理加上了点击事件,其中之一代码如下: cell.h @protocol imageDelegate <NSObject> – (void) imageDelegate; @property (nonatomic ,unsafe_unretained) id……继续阅读 »

10年前 (2015-10-18) 1601浏览 0个赞

iOS

SDWebImage 64位unrecognized selector sent to instan

SDWebImage 64位unrecognized selector sent to instan
RT,项目中用了SDWebImage和ASI这两个不支持64位架构的类库,真机和模拟器是32位的时候都正常,但是64位的模拟器和5S真机运行的时候就直接报错闪退了,错误信息Terminating app due to uncaught exception “”NSInvalidArgumentException”……继续阅读 »

10年前 (2015-10-18) 1266浏览 0个赞

iOS

iOS 类中变量的定义和使用

iOS 类中变量的定义和使用
是对ios假如调用类中变量的方式的疑惑。 1-定义XYPoint接口文件 #import <Foundation/Foundation.h> @interface XYpoint : NSObject @property int x,y; -(void) setX:(int)xVal andY:(int) yVal; @end 2-XYpoi……继续阅读 »

10年前 (2015-10-18) 1927浏览 0个赞

iOS

VS2013+Xamarin 与PhoneGap相比,哪个好?

VS2013+Xamarin 与PhoneGap相比,哪个好?
微软提出的Visual Studio2013+Xamarin+C#=iOS/Andriod/Windows APP的解决方案可行吗? 与PhoneGap相比,哪个好? 解决方案:5分 老老实实PhoneGap 如果有钱那再考虑Xamarin吧….前一个做过 但是比较郁闷人 后一个看了两眼 要收费 就算了…..你可以看看国内的……继续阅读 »

10年前 (2015-10-18) 1311浏览 0个赞

iOS

蓝牙IOS开发,回调函数执行的线程是主线程吗

蓝牙IOS开发,回调函数执行的线程是主线程吗
在封装一个蓝牙类, 其中,self.centralMgr = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; 假如这么写的话,蓝牙回调函数执行所在的线程是主线程吗?是不是一定要把nil替换成本人写的线程才能控制为后台? 原因是本人看大家都是用的nil,全部有此疑惑,刚涉足ios开发,……继续阅读 »

10年前 (2015-10-18) 2098浏览 0个赞

iOS

@synthesize delegate=_delegate;是什么意思

@synthesize delegate=_delegate;是什么意思
@synthesize delegate=_delegate;是什么意思 解决方案:20分 delegate指对外开放的属性 _ delegate类内部使用的变量 @synthesize delegate=_delegate;就是让两个变量同步的意思 新版的xcode会自动帮你做完这件事,你可以不用管,除非你有特殊需求 ……继续阅读 »

10年前 (2015-10-18) 1261浏览 0个赞