码迷,mamicode.com
首页 > 其他好文
开发进阶06_viewDidLoad_UISlider_Plist_NSBundle
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
leetcode 第42题 Multiply Strings
题目: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
开发进阶13_UITableView多行显示
UITableView的两种内置样式UITableViewStylePlain UITableViewStyleGrouped 协议UITableViewDataSource必须实现两个方法cellForRowAtlndexPath和...
分类:其他好文   时间:2014-10-28 00:23:19    阅读次数:252
Foundation-07_其他_NSNumber_NSValue_NSDate
NSNumber数字类型不能存入集合和字典,需要转换成对象。使用NSNumber(以int类型为例,还有其他很多类型的方法,用法参考下面的代码) //将整数转换成对象 NSNumber *num = [NSNumber numberWithInt:10]; //将num加入到字典中 NSDict.....
分类:其他好文   时间:2014-10-28 00:23:49    阅读次数:206
gcc 动态编译 动态库路径
gcc 动态编译(共享库) 动态编译的可执行文件需要附带一个的动态链接库,在执行时,需要调用其对应动态链接库中的命令优点:体积小,编译快缺点:依赖性高代码如下:[root@74-82-173-217 shared]# cat add.cint add (int x, int y) {return x...
分类:其他好文   时间:2014-10-28 00:23:59    阅读次数:259
Go: using a pointer to array
下面的不是指针指向数组,而是指针指向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
开发进阶12_UIScrollView分页_PageControl
/*下面的方法提供了UIScrollView的分页功能PageControl的一些设置等但是只适用于少量的图片(比如软件前面的新功能介绍)*/#define kCount8@interfaceViewController() { UIPageControl*_pageControl;}@end@im...
分类:其他好文   时间:2014-10-28 00:21:24    阅读次数:165
Foundation-06_字典_NSDictionary
NSDictionary :字典是没有顺序的字典不允许有相同的key,但允许有相同的value字典的创建方式: NSDictionary *dict1 = [NSDictionary dictionaryWithObject:@"jack" forKey:@"Tom"]; NSArray *k...
分类:其他好文   时间:2014-10-28 00:22:44    阅读次数:214
灯光设置(light)
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
开发进阶04_按钮操作
UIButton:有状态 1、normal:普通状态(没有触摸的时候)(默认情况下-Default) 2、highlighted:高亮状态(有触摸的时候)经常会出的错误: 如果控件和方法或者属性连线了之后,若不需要这个属性和方法,需要将连线也删除 OC语法规定:不允许直接修改 某个对象中结构体...
分类:其他好文   时间:2014-10-28 00:22:22    阅读次数:260
开发进阶14_UITableView单行显示
@interfaceViewController()@end@implementationViewController- (void)viewDidLoad { [superviewDidLoad]; }#pragma mark -一共一组- (NSInteger)numberOfSections....
分类:其他好文   时间:2014-10-28 00:20:50    阅读次数:192
Foundation-04_集合类_NSArray
NSArray:不可变数组NSMutableArray:可变数组NSArray OC数组不能存放nil值 OC数组只能存放OC对象,不能存放非OC对象,比如:int、struct、enum等 这个array永远是空数组 NSArray *arr1 = [NSArray array]; ...
分类:其他好文   时间:2014-10-28 00:17:24    阅读次数:301
菜鸟的成长---第一个项目的完成
工作 经验 教训
分类:其他好文   时间:2014-10-28 00:19:45    阅读次数:168
A Tour of Go Maps
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
开发进阶03_UIView的常见属性
frame:类型是CGRect @property (nonatomic) CGRect frame; 控件所在矩形框的位置和尺寸(以父控件的左上角为坐标原点)bounds @property (nonatomic) CGRect bounds; 控件所在矩形框的位置和尺寸(以自己左上角为坐...
分类:其他好文   时间:2014-10-28 00:16:59    阅读次数:293
开发进阶01_开发基础知识
ios系统架构 ios系统架构分为4个层次: 1、核心操作层(Core OS) 2、核心服务层(Core Services) 3、媒体层(Media) 4、可触摸层(Cocoa Touch)每个层的主要功能(了解即可) 1、核心操作系统层(Core OS):它包括内存管理、...
分类:其他好文   时间:2014-10-28 00:18:56    阅读次数:271
深度解析VC中的消息传递机制
摘要:Windows编程和Dos编程,一个很大的区别就是,Windows编程是事件驱动,消息传递的。所以,要学好Windows编程,必须对消息机制有一个清楚的认识,本文希望能够对消息的传递做一个全面的分析。一、什么是消息?消息系统对于一个win32程序来说十分重要,它是一个程序运行的动力源泉。一个消...
分类:其他好文   时间:2014-10-28 00:17:46    阅读次数:380
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!