原创 C語言練習3

// // main.c // exercise3 // // Created by Vision on 14-8-29. // #include <stdio.h> #include <stdlib.h> int main(i

原创 C語言總結1

#include <stdio.h> int main(int argc,constchar * argv[]) { //1.輸出hello,world! // printf("hello, world!\n"); /

原创 C語言練習4

// // main.c // exercise4 // // Created by Vision on 14-8-30. // #include <stdio.h> #include <stdlib.h> #include <s

原创 C語言總結5

<pre name="code" class="objc">// // main.c // lesson5 // // Created by Vision on 14-9-2. // #include <stdio.h> //返

原创 OC 內存管理

// // main.m // oc04_內存管理 // // Created by Vision on 14-9-16. // Copyright (c) 2014年 Vision. All rights reserved. /

原创 C語言總結4

// // main.c // lesson4 // // Created by Vision on 14-8-30. // #include <stdio.h> #include <stdlib.h> #include <str

原创 OC 成員變量與方法

// // main.m // oc02_成員變量與方法 // // Created by Vision on 9/12/14. // Copyright (c) 2014 Vision. All rights reserved.

原创 OC 繼承

// // main.m // oc03_繼承 // // Created by Vision on 14-9-15. // Copyright (c) 2014年 Vision. All rights reserved. //

原创 OC 容器類

NSArray 常用方法 1.創建數組對象,使用初始化方法或便利構造器。 NSArray *arr1 = [[NSArray alloc]initWithObjects:@"王晨",@"劉國偉",@"鄭海坤",nil];

原创 OC 屬性

// // main.m // oc05_屬性 // // Created by Vision on 14-9-17. // Copyright (c) 2014年 Vision. All rights reserved. //

原创 OC 字符串

NSString常用方法: 1.創建一個新的字符串,可以使用初始化方法和便利構造器。 <span style="font-size:18px;"> NSString *str0 = @"第一個字符串"; N

原创 C語言練習2

// // main.c // exercise2 // // Created by Vision on 14-8-28. // #include <stdio.h> #include <math.h> int main(int

原创 C語言總結 宏

// // main.c // lesson5 // // Created by Vision on 14-9-2. // #include <stdio.h> //常量宏 #define PI 3.1415926 //帶參數的宏

原创 IOS Block

Block 的使用有兩種:1.獨立Block 。2.內聯Block 。 《一》獨立Block 使用方式 一、定義一個Block Object,並調用。 1.定義 // 定義一個Block Object,返回值:NSString

原创 UIImagePickerController拍照與攝像

在一些應用中,我們需要用到iOS設備的攝像頭進行拍照,視頻。並且從相冊中選取我們需要的圖片或者視頻。 關於iOS攝像頭和相冊的應用,可以使用UIImagePickerController類來完成控制。 關於UIImagePicker