NGUI的DrawCall

  1. drawcall定义:对底层图形程序(比如:OpenGL ES)接口的调用,以在屏幕上画出东西。

List在内存中连续的空间保存

List是线性直接存储类型

mipMap是什么?

mipMap是摄像机离得远近用不同的图片 - 参考文章

折半查找算法 GitHub算法链接(C++)


#include <stdio.h>
#include <stdlib.h> #define MAX 100 int main()
{
int binaryFind(int[],int,int);
void printArray(int[],int); int n,i,j,key,array[MAX];
printf("\t\t\t\tBinaryFind8\nInput the size of the array:");
scanf(" %d",&n); printf("Input a sort of increase numbers:\n");
for(i=0; i<n; i++)
scanf(" %d",&array[i]);
printf("Input finished!\n"); printf("Input the key you would like to find:");
scanf(" %d",&key);
j = binaryFind(array,n,key); printf("\nThe position of the key is : %d",j+1); system("pause");
return 0; } int binaryFind(int array[],int n,int key)
{
//low低值,high高值,mid中值
int low = 0;
int high = n-1;
int mid; //查找key
while(low <= high)
{
//更新中间位置index
mid = (low + high)/2; //找到key,返回位置index
if(array[mid] == key)
return mid;
//中值大于key,key在前半部分,更新high
else if(array[mid] > key)
high = mid-1;
//中值小于key,key在后半部分,更新low
else low = mid+1;
} //没有找到,返回-1
return -1;
} //打印数组
void printArray(int array[] ,int n)
{
int i = 0;
while(i<n)
{
printf(" %d",array[i]);
i++;
}
}

iOS weakstrong

只要有任何strong 指向某个对象A,ARC就不会摧毁它(A)。

而weak所指向的对象B,只要没有其他strong指向该对象(B),ARC会摧毁它(B)。

iOS 深复制浅复制

浅复制,并不拷贝对象本身,仅仅是拷贝指向对象的指针;深复制是直接拷贝整个对象内存到另一块内存中。

信号量机制解决多线程问题

系统级的多线程同步共享资源,利用其可实现多线程的协同工作。

2016年5月面试题(Unity&iOS)的更多相关文章

  1. 2016年4月面试题(Unity)

    一. C#中值类型和引用类型的区别? A: 值类型的数据存储在内存的栈中:引用类型的数据存储在内存的堆中,而内存单元中只存放堆中对象的地址. 值类型存取速度快,引用类型存取速度慢 值类型表示实际数据, ...

  2. 摩根斯坦利 - 2016年09月8日 面试题 - HashMap

    摩根斯坦利 - 2016年09月8日 面试题: 给定一个 Map<Person, Object> map = new HashMap<Person, Object>(); 放入 ...

  3. 关于苹果开发证书失效的解决方式(2016年2月14日Failed to locate or generate matching signing assets)

    前言: 从2月14日開始,上传程序的同学可能会遇到提示上传失败的提示. 而且打开自己的钥匙串,发现所有的证书所有都显示此证书签发者无效. Failed to locate or generate ma ...

  4. Unity iOS混合开发界面切换思路

    Unity iOS混合开发界面切换思路 最近有很多博友QQ 私信 或则 留言联系我,请教iOS和Unity界面之前相互切换的问题,源代码就不私下发你们了,界面跳转功能的代码我直接贴到下面好了,顺带说i ...

  5. 2016年12月31日 星期六 --出埃及记 Exodus 21:26

    2016年12月31日 星期六 --出埃及记 Exodus 21:26 "If a man hits a manservant or maidservant in the eye and d ...

  6. 2016年12月30日 星期五 --出埃及记 Exodus 21:25

    2016年12月30日 星期五 --出埃及记 Exodus 21:25 burn for burn, wound for wound, bruise for bruise.以烙还烙,以伤还伤,以打还打 ...

  7. 2016年12月29日 星期四 --出埃及记 Exodus 21:24

    2016年12月29日 星期四 --出埃及记 Exodus 21:24 eye for eye, tooth for tooth, hand for hand, foot for foot,以眼还眼, ...

  8. 2016年12月28日 星期三 --出埃及记 Exodus 21:23

    2016年12月28日 星期三 --出埃及记 Exodus 21:23 But if there is serious injury, you are to take life for life,若有 ...

  9. 2016年12月27日 星期二 --出埃及记 Exodus 21:22

    2016年12月27日 星期二 --出埃及记 Exodus 21:22 "If men who are fighting hit a pregnant woman and she gives ...

随机推荐

  1. CTE递归查询

    WITH ctetest(AgencyID,ParentAgencyID,level)AS ( SELECT AgencyID,ParentAgencyID,0 level FROM dbo.Web_ ...

  2. Linq to entities 学习笔记

    Linq to  entities ---提供语言集成查询支持用于在概念模型中定义的实体类型. 首先可以根据http://msdn.microsoft.com/en-us/data/jj206878该 ...

  3. Spark-1.5.1 on CDH-5.4.7

    1.修改拷贝/root/spark-1.5.1-bin-hadoop2.6/conf下面spark-env.sh.template到spark-env.sh,并添加设置HADOOP_CONF_DIR: ...

  4. 关于SqlHelper

    在 SqlHelper 类中实现的方法包括:   ExecuteNonQuery.此方法用于执行不返回任何行或值的命令.这些命令通常用于执行数据库更新,但也可用于返回存储过程的输出参数.   Exec ...

  5. 事件问题 Event

    Event事件可以理解为在异步过程中实现同步的操作.但是要注意不要过分的使用Event,否则异步就失去了意义. 直接通过代码来说明: #include

  6. cocoapods无法使用(mac os 10.11升级导致pod: command not found)

    之前安装了cocoapods, 那么输入 : sudo gem install -n /usr/local/bin cocoapods 如果还不行的话 首先在终端输入 gem sources -l 查 ...

  7. spark-sql性能测试

    一,测试环境       1) 硬件环境完全相同:              包括:cpu/内存/网络/磁盘Io/机器数量等       2)软件环境:              相同数据       ...

  8. AngularJs的UI组件ui-Bootstrap分享(六)——Tabs

    tabs控件使用uib-tabset指令和uib-tab指令,效果是这样的: <!DOCTYPE html> <html ng-app="ui.bootstrap.demo ...

  9. HTML代码简写法:Emmet和Haml

    http://www.ruanyifeng.com/blog/2013/06/emmet_and_haml.html?bsh_bid=657901854 HTML代码简写法:Emmet和Haml   ...

  10. Android Service提高

    我们从以下几个方面来了解Service IntentService的使用 Service与Thread的区别 Service生命周期 前台服务 服务资源被系统以外回收处理办法 不被销毁的服务 Inte ...