- 博客(22)
- 收藏
- 关注
原创 UI控件--推送,以及Block块
//AppDelegate.m的实现文件import “AppDelegate.h”import “AViewController.h”@interface AppDelegate ()@end@implementation AppDelegate(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:
2015-08-29 17:51:28 280
原创 UI手势二
//首先是ViewController.h的实现文件import “ViewController.h”import “DrawView.h”import “Quart.h”import “appView.h”@interface ViewController ()@end@implementation ViewController(void)viewDidLoad { [super viewDi
2015-08-29 17:43:02 271
原创 UI手势
这个手势的效果 主要是Viewcontroller.h的实现文件import “ViewController.h”@interface ViewController () { UIView *view; } @end@implementation ViewController(void)viewDidLoad { [super viewDidLoad]; // Do any
2015-08-29 17:34:02 262
原创 制作Gif动图
//创建一个协议文件PrefixHeader_pchifndef MakeGif_PrefixHeader_pchdefine MakeGif_PrefixHeader_pchdefine ColorChangeNotification @”ColorChangeNoti”define RepealNotification @”RepealNotification”endif//创建两个子类GifV
2015-08-28 20:29:10 494
原创 UI动图的制作
创建一个协议文件,把screen的width,height用宏定义ifndef UI_05_02_PrefixHeader_pchdefine UI_05_02_PrefixHeader_pchdefine Screen_Width [[UIScreen mainScreen] bounds].size.widthdefine Screen_Height [[UIScreen mainScreen]
2015-08-28 20:09:26 889
原创 导航控制器的学习
import “ViewController.h”import “AViewController.h”@interface ViewController () { UIView *view; } @end@implementation ViewController(void)viewDidLoad { [super viewDidLoad];// self.title =
2015-08-24 20:27:38 318
原创 有关label的学习笔记
import “AppDelegate.h”@interface AppDelegate () { UILabel *label;} - (void)setLink;@end@implementation AppDelegate(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NS
2015-08-22 16:41:02 333
原创 Autolayout布局模式
import “ViewController.h”@interface ViewController ()@end@implementation ViewController(void)viewDidLoad { [super viewDidLoad]; /* AutoLayout由来 IOS6之后出现的一种新的布局方式,用于取代原先的Autosizing系统的布局方式 Autol
2015-08-20 20:27:43 345
原创 UI计算器的设计
@interface AppDelegate () { UILabel *label; double headNumber; double endNumber; BOOL plus; BOOL subs; BOOL multiply; BOOL divide;}@end@implementation AppDelegate(B
2015-08-19 20:17:31 429
原创 Oc复习
/*ObjC的复习 1)Foundation框架 一.字符串 NSString和NSmutableString 字符串的创建,初始化,以及常用的方法*/ NSString *string = @”我们都是好孩子”; NSString *string1 = [NSString stringWithString:
2015-08-17 20:29:55 296
原创 OC的学习笔记汇总
/*1)面向对象和面向过程的区别 面向过程:是指分析出解决问题所需的步骤,然后用函数把这些步骤一步步实现,使用时一个个调用就可以了 面向对象是:把构成问题的事物分解成一个个对象,然后协调各个对象之间的联系和通信,建立对象的目的不是为了完成一个个步骤,而是为了描述某个事物在整个解决问题的步骤中的行为。*/ /*2)类,对象,方法概念(用代码实现) 类:类是具有相同
2015-08-17 11:27:36 300
原创 微博的开发
import “ViewController.h”import “WeiboInfoModel.h”@interface ViewController (){ NSMutableData *mdata;NSURLConnection *getAsyncCon;NSURLConnection *postAsyncCon;} @property (weak, nonatomic) IBO
2015-08-13 18:48:03 316
原创 图片下载的作业
Downd的接口文件:import define ImgsDirectory @”Imgs”define DocumentsPath [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]//枚举的作用是方便程序的可读性 //结构体的枚举 typedef e
2015-08-13 18:46:36 279
原创 OC中的文件管理
/* iOS文件系统 当第一次启动app时,iOS操作系统就为此APP创建了一个文件系统,该文件系统下默认有四个目录,分别是: Documents:存储用户在操作app时产生的数据,此目录下的数据可以通过iCloud进行同步 Library:用户偏好设置数据,通常和此类NSUserDefaults搭配使用,此目录下的数据可以通过iCloud进行同
2015-08-11 19:19:54 448
原创 有关模式的课堂笔记
设计模式设计模式是用来解决编程某些特定问题。单例模式什么时候使用单例模式?在一个工程中,有一些类只需要一个实例变量,我们就可以将这些类设计成单例模式单例模式的作用?当一个类A被设计成单例模式时,由A构造出的实例对象之于其它类来讲为全局实例对象,即在每一个类中由A构造出的实例对象,都为相同对象在OC中如何将一个类设计成单例模式?在要被设计成单例的类的.h文件中声明一个构造单例方法,如:+(Stude
2015-08-05 18:59:01 261
原创 有关截取歌词中字符串的作业(用工程实现)
运行部分代码:import “ViewController.h”import “SongObj.h”@interface ViewController (){ NSArray *dataSource; } @property (weak, nonatomic) IBOutlet UITableView *table;@end@implementation ViewController
2015-08-05 18:55:04 301
原创 有关提取歌词中字符串的作业
声明部分代码:import import “SongObj.h”@implementation SongObj+(SongObj )songWithContentString:(NSString )string{ SongObj *songObj = [SongObj new]; // [songObj handleWithStringNew:string]; [song
2015-08-05 18:42:49 330
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人