一组外企iOS开发的笔试题,您能回答出来吗?从群里收集来的。
(miki西游@mikixiyou的文档,原文链接: http://mikixiyou.iteye.com/blog/1546376
转载请注明出处和作者)
1 why can't NSArray contain NSInteger Instance? with which extra step can you do it?
2.complete this code so that it becomes syntacticallty correct using no more than one additional word and square branckets
NsInteger myNumber=@"10000";
这个我会回答是:
NSInteger myInt = [myString intValue];
3.What does the following code do? Variable age is defined as NSInteger It compiles fine..but why does it crash?
UILabel *mylabel=[UILabel new];
mylabel.text=age?[NSString stringWithFormat:@"%@",age];@"";
这个我的回答是:定义一个UITable对象,根据age的true或者false来给该对象的text属性赋值。难道是bool转换成string时导致的crash?
4.Why does the following code crash as soon as the property is set?What is the simple fix?
MeasueStripView.h
@Interface MeasueLinealView:UIview
{
NSUIInteger minvalue;
}
@property (nonatomic,assign)NSUIInteger minvalue;
MeasueStripView.m
#import "MeasueStripView.h"
@implementation MeasueStripView
@synthsize minvalue
#progma mark Passthrough properties
-(void) setMinValue:(NSUIInteger)aVal
{
self.minvalue:aVal;
}
Some other file:
MeasueStripView *myMS=[MeasueStripView ww];
myMS.minValue=100;//THis Line crashes..
5.You have a UIView and would like to for it to have rounded corners, What's the Fastest way to achive that|
6 How many methods do you know of performing a piece of code in other thread on IOS4.0 and later version.
关于多线程的问题,只能去翻apple的文档了。
我查到的方法是:
1、detachNewThreadSelector或performSelectorInBackground
2、NSThread
3、NSOperationQueue
分享到:
相关推荐
某外企java笔试题某外企java笔试题某外企java笔试题某外企java笔试题
外企笔试题解密 里面有各个外企的笔试题,并有详细答案
几家外企的笔试题,有兴趣的可以看看,我也是从别处下的.
外企笔试的时候可能会考察英语水平,针对这个的一套试卷,不是很多,有选择题,完形填空,和作文。
有java面试的人可以下下来看看。挺好用的。还有微软,IMB 华为等各大公司的笔试题,对你以后的面试很有帮助。
部分外企笔试真题总结,包括微软,IBM等等
笔试题 外企 笔试 面试 c++ 可以从中学习一些技巧,人力资源 更好的投入 找工作
外企笔试真题总结 .
java英文笔试题! 总共30道题! 应该会对大家的鄙视有很多帮助!
C++外企笔试题.doc
我是从别的地方总结过来的希望对需要的人有用!!
经典腾讯的C语言笔试题,不可多得的好资料,专门为应届生准备的!
java面试题-外企软件工程师面试题大全.rarjava面试题-外企软件工程师面试题大全.rarjava面试题-外企软件工程师面试题大全.rarjava面试题-外企软件工程师面试题大全.rar
46家公司笔试题 c/c++笔试题 面试题 部分外企笔试题总结
笔试题是从网上搜集的,包括百度,腾讯,微软,外企,c/c++,java和C#等
外企软件测试笔试题目.pdf
Exercise外企财务英语考试题.pdf
想进外企有木有!!!搜集的java英文面试题,内含答案,绝对经典!
CC++笔试题系列.txt c,c++笔试.txt IT职场中外企面试最爱提的问题TOP10 .txt 面试常见37个问题.doc (4)笔试题.doc 等等