- 博客(38)
- 资源 (2)
- 收藏
- 关注
原创 UIImagePickerController拍照与摄像
在一些应用中,我们需要用到iOS设备的摄像头进行拍照,视频。并且从相册中选取我们需要的图片或者视频。关于iOS摄像头和相册的应用,可以使用UIImagePickerController类来完成控制。关于UIImagePickerController的相关知识,如下:iOS的一些设备上都安装了摄像头。现在绝大多数都有了。在编程中,我们是用相应的东西来进
2014-11-25 15:20:35
536
原创 UI 常用方法总结之--- UITableView
转载请注明出处:http://blog.youkuaiyun.com/qq11231325UITableView : UIScrollView <NSCoding> 1.创建一个UITableView对象ITableView *tableView = [[UITableView alloc]initWithFrame:[[UIScreen mainScreen] bounds]...
2014-10-18 11:00:45
3065
原创 UI 常用方法总结之--- UINavigationController
UINavigationController : UIViewController 1.创建UINavigationController对象UINavigationController *navCV = [[UINavigationController alloc]initWithRootViewController:mainVC]; 通常和self.window.rootVi...
2014-10-13 08:28:45
725
原创 UI 常用方法总结之--- UIPageControl
UIPageControl : UIControl 1.创建一个UIPageControl对象UIPageControl *pageControl = [[UIPageControl alloc]initWithFrame:CGRectMake(20, 20, 280, 50)]; 2.backgroundColor背景颜色 3.numberOfPages显示...
2014-10-13 08:27:08
559
原创 UI 常用方法总结之--- UIScrollView
UIScrollView : UIView <NSCoding> 1.创建一个UIScrollView对象UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(20, 20, 280, 280)]; 2.backgroundColor背景颜色 3.contentS...
2014-10-13 08:23:27
862
原创 UI 常用方法总结之--- UIImageView UISlider UISegmentedControl
UIImageView : UIView 1.animationImages图像数组2.- (void)startAnimating;开始动画3.- (void)stopAnimating;停止动画4.- (BOOL)isAnimating;返回一个布尔值,该值指示动画是否正在运行。 UISlider : UIControl &l...
2014-10-11 20:06:41
662
原创 UI 常用方法总结之---各个手势种类 UIGestureRecognizer
手势种类UIGestureRecognizer : NSObject1.- (void)addGestureRecognizer:(UIGestureRecognizer*)gestureRecognizer附加一个手势识别器到视图。一.点击 tapUITapGestureRecognizer : UIGestureRecognizer1.创建一个UITapGestureR...
2014-10-11 20:06:11
861
原创 UI 常用方法总结之--- UIViewController UIResponder
UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer> 关于UIViewController生命周期loadView -> viewDidLoad -> viewWillAppear -> viewDid...
2014-10-11 20:01:41
810
原创 UI 常用方法总结之--- UIButton UIAlertView
UIButton : UIControl <NSCoding> 1.创建一个UIButton对象UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];button.frame = CGRectMake(30, 140, 280, 30); 2.- (void)setTitle:(NSStr...
2014-10-06 11:44:48
577
原创 UI 常用方法总结之--- UILabel UITextField
UILabel : UIView <NSCoding>1.创建一个UILabel对象UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(30, 30, 280, 60)]; 2.backgroundColor背景颜色 3.text显示的文本信息eg:label.text = @"显示的文...
2014-10-06 11:39:41
809
原创 UI 常用方法总结之--- UIWindow UIView
UIWindow (UIView) 1.创建一个uiwindow对象 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 2.backgroundColor背景颜色 3.- (void)makeKeyAndVisible;eg: [self.wind...
2014-10-06 11:26:03
764
原创 UI 自定义view
//// VisionAppDelegate.m// 自定义view//// Copyright (c) 2014年 Vision. All rights reserved.//#import "VisionAppDelegate.h"#import "VisionLTView.h"@implementation VisionAppDelegate//应用程序加载完成
2014-09-29 16:10:18
518
原创 UI UI基本控件
//// VisionAppDelegate.m// UI基本空间// Copyright (c) 2014年 Vision. All rights reserved.//#import "VisionAppDelegate.h"@implementation VisionAppDelegate- (BOOL)application:(UIApplication *)ap
2014-09-29 15:52:32
718
原创 UI UIView
//// VisionAppDelegate.m// UIView_09_25//// Copyright (c) 2014年 Vision. All rights reserved.//#import "VisionAppDelegate.h"@implementation VisionAppDelegate- (BOOL)application:(UIApplica
2014-09-29 15:49:20
541
原创 OC Block KVC
函数指针#import #import "Person.h"int sum(int a, int b){ return (a + b);}int min(int a, int b){ int min = a < b ? a : b; return min;}int max(int a, int b){ int max = a >b ?
2014-09-29 15:08:07
608
原创 OC 类的扩展
类的扩展一 类目(Category)对现有的类添加新的方法,并且不需要创建子类,不需要访问原有类的源代码.1.作用 1)可以扩展别人的类,可以作为子类的替代方法。 2)把同一类的代码放到多个文件中。2.形式 1)文件名:目标类+类目名.h 目标类+类目名.m 2).h文件中 @int
2014-09-29 14:43:25
716
原创 OC 容器类
NSArray 常用方法 NSMutableArray 常用方法 NSNumber 常用方法 NSMutableArray 常用方法
2014-09-19 20:39:19
1711
原创 OC 属性
//// main.m// oc05_属性//// Created by Vision on 14-9-17.// Copyright (c) 2014年 Vision. All rights reserved.//#import #import "Person.h"#import "Classroom.h"#import "Teacher.h"int main(i
2014-09-18 08:45:26
522
原创 OC 内存管理
//// main.m// oc04_内存管理//// Created by Vision on 14-9-16.// Copyright (c) 2014年 Vision. All rights reserved.//#import #import "House.h"#import "Person.h"int main(int argc, const char *
2014-09-16 19:32:04
514
原创 OC 继承
//// main.m// oc03_继承//// Created by Vision on 14-9-15.// Copyright (c) 2014年 Vision. All rights reserved.//#import #import "Person.h"#import "Student.h"#import "Teacher.h"#import "Col
2014-09-16 08:44:43
565
原创 OC 复合
//// main.m// oc02_复合//// Created by Vision on 9/12/14.// Copyright (c) 2014 Vision. All rights reserved.//#import #import "Computer.h"#import "Mouse.h"#import "Monitor.h"#import "Keyb
2014-09-12 16:00:29
602
原创 OC 成员变量与方法
//// main.m// oc02_成员变量与方法//// Created by Vision on 9/12/14.// Copyright (c) 2014 Vision. All rights reserved.//#import #import "Person.h"#import "Family.h"#import "Student.h"int main(
2014-09-12 15:56:33
601
原创 OC 类和对象
//// main.m// oc01_类对象//// Created by Vision on 14-9-11.#import #import "Person.h"#import "Phone.h"int main(int argc, const char * argv[]){ @autoreleasepool { NS
2014-09-11 15:40:35
597
原创 C语言练习5
//// main.c// exercise5//// Created by Vision on 14-9-4.//#include #include "Myfunction.h"#include "Operator.h"int main(int argc, const char * argv[]){// int a, b, c;// scanf("%d
2014-09-07 16:36:37
568
原创 C语言总结 宏
//// main.c// lesson5//// Created by Vision on 14-9-2.//#include //常量宏#define PI 3.1415926//带参数的宏//#define MAX1(A, B) ((A) > (B) ? (A) : (B))#define MIN1(A, B) ((A) < (B) ? (A) : (B))
2014-09-07 16:29:47
860
原创 C语言总结5
//// main.c// lesson5//// Created by Vision on 14-9-2.//#include //返回值类型 函数名(参数列表)int maxValue(int x,int y){ int result = x > y ? x : y; return result;}//无参数 无返回值 (无返回值void
2014-09-07 15:50:23
610
原创 C语言练习4
//// main.c// exercise4//// Created by Vision on 14-8-30.//#include #include #include #define SIZE 10int main(int argc, const char * argv[]) {//1.// int a[SIZE] = {0},i= 0;// fo
2014-09-07 15:41:24
923
原创 C语言总结4
//// main.c// lesson4//// Created by Vision on 14-8-30.//#include #include #include int main(int argc, const char * argv[]){//1.定义数组: // int array[5] = { 2, 7, 4, 3, 6};// a
2014-09-07 12:53:07
657
原创 C语言练习3
//// main.c// exercise3//// Created by Vision on 14-8-29.//#include #include int main(int argc, const char * argv[]){// 1.(**)随机产生20个[10 , 100]的正整数,输出这些数以及他们中的最大数// int i = 0;//
2014-09-07 12:47:16
647
原创 C语言总结3
//// main.c// lesson3//// Created by Vision on 14-8-29.//#include #include #include int main(int argc, const char * argv[]){//1.打印1——100// int n = 0;// while (n <= 100) {//
2014-09-07 12:32:53
485
原创 C语言练习2
//// main.c// exercise2//// Created by Vision on 14-8-28.// Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.//#include #include int main(int argc, const char * argv[]){//1.(
2014-09-06 16:39:35
936
原创 C语言总结2
//// main.c// lensson2//// Created by Vision on 14-8-28.//#include #include //枚举类型enum phone { caiwubu = 801, renshibu, baoanbu, jisubu1 = 901, jisubu2, jisubu3}
2014-09-06 16:18:03
742
原创 C语言练习1
//// main.c// exercise1//// Created by Vision on 14-8-28.#include int main(int argc, const char * argv[]){ //5、 (*)打印下面图形:// *// * *// * * *// printf(" *\n");//
2014-09-06 15:48:03
1058
原创 C语言总结1
#include int main(int argc,constchar * argv[]){//1.输出hello,lanou!// printf("hello, lanou!\n"); // 结果:hello, lanou!//2.输出变量// int sb = 3;// printf("sb = %d\n",sb);// 结果:s
2014-09-01 20:53:39
545
VMware_Workstation_10安装OS_X_Mavericks
2014-03-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅