一个tableViewCell 里添加了三个imageView ,分别通过代理加上了点击事件,其中之一代码如下:
cell.h
@protocol imageDelegate <NSObject>
– (void) imageDelegate;
@property (nonatomic ,unsafe_unretained) id……继续阅读 »
10年前 (2015-10-18) 1601浏览
0个赞
RT,项目中用了SDWebImage和ASI这两个不支持64位架构的类库,真机和模拟器是32位的时候都正常,但是64位的模拟器和5S真机运行的时候就直接报错闪退了,错误信息Terminating app due to uncaught exception “”NSInvalidArgumentException”……继续阅读 »
10年前 (2015-10-18) 1266浏览
0个赞
是对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个赞
微软提出的Visual Studio2013+Xamarin+C#=iOS/Andriod/Windows APP的解决方案可行吗?
与PhoneGap相比,哪个好?
解决方案:5分
老老实实PhoneGap 如果有钱那再考虑Xamarin吧….前一个做过 但是比较郁闷人 后一个看了两眼 要收费 就算了…..你可以看看国内的……继续阅读 »
10年前 (2015-10-18) 1311浏览
0个赞
在封装一个蓝牙类,
其中,self.centralMgr = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
假如这么写的话,蓝牙回调函数执行所在的线程是主线程吗?是不是一定要把nil替换成本人写的线程才能控制为后台?
原因是本人看大家都是用的nil,全部有此疑惑,刚涉足ios开发,……继续阅读 »
10年前 (2015-10-18) 2098浏览
0个赞
Archive时报错 must start with a top level dictionary.
之前是itms-90096 在网上找到的解决方法是
http://segmentfault.com/q/1010000002973147
然后将Launchimage里图片补齐后 之前的错误还在 还多了一个错误
/Images.xcassets: The……继续阅读 »
10年前 (2015-10-18) 1362浏览
0个赞
UIbutton代码是
NSMutableArray *buttonsArray = [NSMutableArray array];
for (int i = 0; i < 7; i ++) {
UIButton *button = [[UIButton alloc]init];
//...略去给bu……继续阅读 »
10年前 (2015-10-18) 1609浏览
0个赞
@synthesize delegate=_delegate;是什么意思
解决方案:20分
delegate指对外开放的属性
_ delegate类内部使用的变量
@synthesize delegate=_delegate;就是让两个变量同步的意思
新版的xcode会自动帮你做完这件事,你可以不用管,除非你有特殊需求
……继续阅读 »
10年前 (2015-10-18) 1261浏览
0个赞
– (id)initWithDelegate:(id <CommonDataSelectorDelegate>)delegate andDatasource:(id <CommonDataSelectorDatasource>)datasource
{
self = [[[NSBundle mainBundl……继续阅读 »
10年前 (2015-10-18) 1091浏览
0个赞