QQ群里收集的外企iOS开发的笔试题
一组外企iOS开发的笔试题,您能回答出来吗?从群里收集来的。
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
QQ群里收集的外企iOS开发的笔试题的更多相关文章
- 外企iOS开发的笔试题
一组外企iOS开发的笔试题,您能回答出来吗?从群里收集来的. (miki西游@mikixiyou的文档,原文链接: http://mikixiyou.iteye.com/blog/1546376 转 ...
- iOS开发工程师笔试题
iOS开发工程师笔试题 1. Object-c的类可以多重继承么?可以实现多个接口么?Category是什么?重写一个类的方式用继承好还是分类好?为什么? Object-c的类不可以多重继承:可以 ...
- 分享一下SQLSERVER技术交流QQ群里的群共享资源
分享一下SQLSERVER技术交流QQ群里的群共享资源 SQLSERVER技术交流QQ群已经开了一段时间了,人数已经有了100多号人, 而群里面很多SQLSERVER爱好者上传了他们宝贵的SQLSER ...
- 为什么不喜欢在 QQ 群里回答问题?
为什么不喜欢在 QQ 群里回答问题? 没有主题,主题随时都在变. 回答后无法备份,当然自己有心可以总结一下. 实时性要求太强,可能回答但是突然有事离开,再回头看已经是 几十条的留言. QQ 群用来闲聊 ...
- 复盘鼎甲科技2020web开发工程师-笔试题(校招)
复盘鼎甲科技2020web开发工程师-笔试题(校招) 本试卷以W3C规范为准,JavaScript使用ES5标准,除特别说明外,不考虑各个浏览器之间差异. 一.多项选择题 以下标签是行内元素(inli ...
- iOS——学习网址收集+如何提高iOS开发技能
1 一个比系统自带的终端好用的软件:http://www.iterm2.com 2 学习和遇到技术问题可以去的网站: CocoaChina http://developer.cocoachi ...
- 100个iOS开发/设计面试题汇总
常见问题 你昨天/这周学习了什么? 你为什么热衷于软件开发? 你对哪一种控制系统比较熟悉? 是否参与过GitHub项目? 是否参与过GitHub或其他同类型网站的iOS开源项目? 请描述一下你的iOS ...
- 100个iOS开发/设计面试题汇总,你将如何作答?
原文: http://www.csdn.net/article/2015-01-19/2823604-ios-interview-questions 常见问题 你昨天/这周学习了什么? 你为什么热衷于 ...
- iOS开发工程师面试题(二)
1.手写冒泡跟插入排序 冒泡排序来源于生活常识,相当于把数组竖起来,轻的向上,重的向下.void bubbleSort(int[] unsorted) { ; i < unsorted.Leng ...
随机推荐
- AspNetPager学习使用1
今天开始研究使用AspNetPager 首先贴上下载链接:http://www.webdiyer.com/aspnetpager/downloads/ 在下载链接中,作者已经提供了使用方法.在这里,本 ...
- linux /etc/sysctl.conf 禁止别人ping自己
vi /etc/sysctl.conf如果希望屏蔽别人 ping 你的主机,则加入以下代码:# Disable ping requestsnet.ipv4.icmp_echo_ignore_all = ...
- Git之忽略文件(ignore file)
1. 环境 Windows XP SP3 + TortoiseGit + msysGit 2. ignore files的三种方法 以下涉及的ignore文件均为如下格式: # 以'#'开 ...
- MongoDB - MongoDB CRUD Operations, Query Documents, Project Fields to Return from Query
By default, queries in MongoDB return all fields in matching documents. To limit the amount of data ...
- 关于asp.net MVC 中的TryUpdateModel方法
有比较才会有收货,有需求才会发现更多. 在传统的WebFormk开发工作中,我们常常会存在如下的代码块 //保存 protected void btnSubmit_Click(object sende ...
- JSP之错误信息提示
MessageResource.properties配置文件: RegisterAction注册: package com.caiduping.action; import javax.servlet ...
- 通过带参数的Sql语句来实现模糊查询(多条件查询)
#region 通过带参数的Sql语句来实现模糊查询(多条件查询) StringBuilder sb = new StringBuilder("select * from books&quo ...
- 20141030--SQL2008常用命令-1
create database biao2--创建新的数据库 go use biao2 go create table shuiguo--创建表shuiguo ,create table创建表 ( 序 ...
- python基础:os模块中关于文件/目录常用的函数使用方法
Python是跨平台的语言,也即是说同样的源代码在不同的操作系统不需要修改就可以同样实现 因此Python的作者就倒腾了OS模块这么一个玩意儿出来,有了OS模块,我们不需要关心什么操作系统下使用什么模 ...
- php_2
form表单提交: <body> <form action="php_request2.php" method="post"> 姓名: ...