iphone屏幕尺寸: iphone4/4s 320 480 iphone5/5s 320 568 iphone6 375 667 iphone6 plus 414 736@interface ViewController (){ NSArray *_allDescs;...
分类:
其他好文 时间:
2014-10-28 00:23:15
阅读次数:
267
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:
其他好文 时间:
2014-10-28 00:23:08
阅读次数:
321
UITableView的两种内置样式UITableViewStylePlain UITableViewStyleGrouped 协议UITableViewDataSource必须实现两个方法cellForRowAtlndexPath和...
分类:
其他好文 时间:
2014-10-28 00:23:19
阅读次数:
252
NSNumber数字类型不能存入集合和字典,需要转换成对象。使用NSNumber(以int类型为例,还有其他很多类型的方法,用法参考下面的代码) //将整数转换成对象 NSNumber *num = [NSNumber numberWithInt:10]; //将num加入到字典中 NSDict.....
分类:
其他好文 时间:
2014-10-28 00:23:49
阅读次数:
206
gcc 动态编译(共享库) 动态编译的可执行文件需要附带一个的动态链接库,在执行时,需要调用其对应动态链接库中的命令优点:体积小,编译快缺点:依赖性高代码如下:[root@74-82-173-217 shared]# cat add.cint add (int x, int y) {return x...
分类:
其他好文 时间:
2014-10-28 00:23:59
阅读次数:
259
下面的不是指针指向数组,而是指针指向SliceI'm having a little play with google's Go language, and I've run into something which is fairly basic in C but doesn't seem to ...
分类:
其他好文 时间:
2014-10-28 00:21:40
阅读次数:
176
/*下面的方法提供了UIScrollView的分页功能PageControl的一些设置等但是只适用于少量的图片(比如软件前面的新功能介绍)*/#define kCount8@interfaceViewController() { UIPageControl*_pageControl;}@end@im...
分类:
其他好文 时间:
2014-10-28 00:21:24
阅读次数:
165
NSDictionary :字典是没有顺序的字典不允许有相同的key,但允许有相同的value字典的创建方式: NSDictionary *dict1 = [NSDictionary dictionaryWithObject:@"jack" forKey:@"Tom"]; NSArray *k...
分类:
其他好文 时间:
2014-10-28 00:22:44
阅读次数:
214
clc;clear all;close all;%% 台灯的设置figure('color','k')% 底座fill3([0 1 1 0],[0 0 1 1],[0 0 0 0],'b',... [1 1 1 1],[0 0 1 1],[0 0.5 0.5 0],'b',... ...
分类:
其他好文 时间:
2014-10-28 00:20:14
阅读次数:
175
UIButton:有状态 1、normal:普通状态(没有触摸的时候)(默认情况下-Default) 2、highlighted:高亮状态(有触摸的时候)经常会出的错误: 如果控件和方法或者属性连线了之后,若不需要这个属性和方法,需要将连线也删除 OC语法规定:不允许直接修改 某个对象中结构体...
分类:
其他好文 时间:
2014-10-28 00:22:22
阅读次数:
260
@interfaceViewController()@end@implementationViewController- (void)viewDidLoad { [superviewDidLoad]; }#pragma mark -一共一组- (NSInteger)numberOfSections....
分类:
其他好文 时间:
2014-10-28 00:20:50
阅读次数:
192
NSArray:不可变数组NSMutableArray:可变数组NSArray OC数组不能存放nil值 OC数组只能存放OC对象,不能存放非OC对象,比如:int、struct、enum等 这个array永远是空数组 NSArray *arr1 = [NSArray array]; ...
分类:
其他好文 时间:
2014-10-28 00:17:24
阅读次数:
301
A map maps keys to values.Maps must be created withmake(notnew) before use; thenilmap is empty and cannot be assigned to.package main import "fmt"type...
分类:
其他好文 时间:
2014-10-28 00:18:07
阅读次数:
184
frame:类型是CGRect @property (nonatomic) CGRect frame; 控件所在矩形框的位置和尺寸(以父控件的左上角为坐标原点)bounds @property (nonatomic) CGRect bounds; 控件所在矩形框的位置和尺寸(以自己左上角为坐...
分类:
其他好文 时间:
2014-10-28 00:16:59
阅读次数:
293
ios系统架构 ios系统架构分为4个层次: 1、核心操作层(Core OS) 2、核心服务层(Core Services) 3、媒体层(Media) 4、可触摸层(Cocoa Touch)每个层的主要功能(了解即可) 1、核心操作系统层(Core OS):它包括内存管理、...
分类:
其他好文 时间:
2014-10-28 00:18:56
阅读次数:
271
摘要:Windows编程和Dos编程,一个很大的区别就是,Windows编程是事件驱动,消息传递的。所以,要学好Windows编程,必须对消息机制有一个清楚的认识,本文希望能够对消息的传递做一个全面的分析。一、什么是消息?消息系统对于一个win32程序来说十分重要,它是一个程序运行的动力源泉。一个消...
分类:
其他好文 时间:
2014-10-28 00:17:46
阅读次数:
380