上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 加两个UI模块- (void)viewDidLoad{ [selfbegin1]; [selfbegin2]; [superviewDidLoad];// Do any additional setup after loading the view from its nib.}-(void)begin1{UIActivityIndicatorView*viView = [[UIActivityIndicatorViewalloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; viView.cen. 阅读全文
posted @ 2014-04-13 13:19 Levi.duan 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 添加个导航栏: Xib1*xib1 = [[Xib1alloc]initWithNibName:@"Xib1"bundle:nil];UINavigationController*navController = [[UINavigationControlleralloc]initWithRootViewController:xib1];self.window.rootViewController= navController;xib1:- (IBAction)nextPage:(id)sender {self.title=@"一";Xib2*xib2= 阅读全文
posted @ 2014-04-13 13:18 Levi.duan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: ViewController 应用再第一个XIB页面创建另一个XIB页面,并且通过按钮调用它- (IBAction)GoSecond:(id)sender {secondViewController*secVC = [[secondViewControlleralloc]initWithNibName:@"secondViewController"bundle:nil]; secVC.modalTransitionStyle=UIModalPresentationPageSheet; [selfpresentViewController:secVCanimated:YESc 阅读全文
posted @ 2014-04-01 22:23 Levi.duan 阅读(1113) 评论(0) 推荐(2) 编辑
摘要: 工厂模式:.h文件:#importtypedefenum{ QFRed, QFYellow, QFBlue}QFViewColor;@interfaceQFview :UIView+(id)viewWithColor:(QFViewColor)QFViewColorType;@end.m文件:+(id)viewWithColor:(QFViewColor)QFVie... 阅读全文
posted @ 2014-03-31 19:36 Levi.duan 阅读(270) 评论(0) 推荐(0) 编辑
摘要: MiniGui 编译hello.c 文件成功!记载一下!MiniGui 版本v3.0 和 2 编译 差异 是极其的大!源文件代码 :#include#include#include#include#includestaticintHelloWinProc(HWND hWnd,intmessage, WPARAM wParam, LPARAM lparam){ HDC h... 阅读全文
posted @ 2014-03-30 16:18 Levi.duan 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: 1.UI书写:一个小练习图片如下:代码如下:@implementationAppDelegate{UIControl*control;UILabel*label;} label= [[UILabelalloc]initWithFrame:CGRectMake(10,50,300,50)];control= [[UIControlalloc]initWithFrame:CGRectMake(10,50,300,50)];label.backgroundColor= [UIColorclearColor];label.text=@"按我呀、好爽!";label.textColo 阅读全文
posted @ 2014-03-28 19:02 Levi.duan 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 1. UI 书写最基本创建一个label 标签 写一个first rate : UILabel*label = [[UILabelalloc]initWithFrame:CGRectMake(10,50,300,50)]; label.backgroundColor= [UIColororangeColor]; label.text=@"first rate... 阅读全文
posted @ 2014-03-27 21:56 Levi.duan 阅读(255) 评论(0) 推荐(0) 编辑
摘要: NSString 基础练习:代码://// main.m// NSStringDemo01//// Created by Levi on 14-3-14.// Copyright (c) 2014年 levi. All rights reserved.//#import int main(int argc, const char * argv[]){ @autoreleasepool { /* NSString NSArray NSDictionary */ char *s... 阅读全文
posted @ 2014-03-14 19:05 Levi.duan 阅读(256) 评论(0) 推荐(0) 编辑
摘要: (一)学习目标:1.面向对象基本概念:OOP的主要思想是把构成问题的各个事务分解成各个对象,建立对象的目的不是为了完成一个步骤,而是为了描述一个事物在整个解决问题步骤中的行为。2.熟悉OC类的定义:OC类分为两个文件,.h 和 .m文件.h 文件存放类、函数声明,类声明用关键字@interface @end 来声明.m文件存放的是具体实现,类实现使用关键字@implementation @end 来实现+ 表示类的方法,相当于 JAVA中的静态函数- 表示对象方法,对象实例化可以调用3.熟悉OC的字段定义:@interface Person : NSObject { int age;... 阅读全文
posted @ 2014-03-13 20:25 Levi.duan 阅读(1192) 评论(2) 推荐(0) 编辑
摘要: 练习代码:代码一:(面向过程的OC)//// main.m// Class01Test01//// Copyright (c) 2014年 levi. All rights reserved.//#import @interface Fraction : NSObject-(void) setarr;-(void) rand;-(void) judge;@end@implementation Fraction{ NSInteger a; NSInteger b; //NSArray *arr = @[@"剪刀", @"石头", @"布" 阅读全文
posted @ 2014-03-13 19:13 Levi.duan 阅读(493) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页