`
rayln
  • 浏览: 417253 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

TabView的使用

多页面的tab使用,就是ActionBar。直接看例子 其实就是通过UINavigationControl去控制页面跳转 // // AppDelegate.h // Tabe1 // // Created by Rayln Guan on 9/23/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <UIKit/UIKit.h> @class FirstViewController; @interface AppDelegate : UIResponde ...
需要多实现方法 首先需要在xib的视图文件中修改TableView的style中选择Grouped。 然后实现2个方法 1. numberOfSectionsInTableView,分多少个组。 2. titleForHeaderInSection 每个组的title 具体代码如下 省略Property List文件test.plist // // ViewController.h // TableView1 // // Created by Rayln Guan on 9/22/13. // Copyright (c) 2013 Rayln Guan. All righ ...

TableView的使用

在界面上拖一个TableView控件在可视区域。定义一个Property List文件,里面是一个键值队的列表。 本代码 test.plist文件 代码如下! // // ViewController.h // TableView1 // // Created by Rayln Guan on 9/22/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewCont ...

实现alert弹出框

首先需要先实现UIAlertViewDelegate协议,这样可以获得Alert各种方法并且可以实现他 看例子! // // ViewController.h // LoginQQ // // Created by Rayln Guan on 9/16/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController <UIAlertViewDelega ...
$('#box').animate({ textIndent : 0 }, { step : function(now, fx) { $(this).css('-webkit-transform', 'rotate(' + now + 'deg)'); }, duration : 'slow' }, 'swing');

Copy方法

NSArray NSMutableArray copy NSArrayNSArray NSMutableArray mutableCopy NSMutableArrayNSDictionary NSMutableDictionary copy NSDictionaryNSMutableDictionary NSDictionary mutableCopy NSMutableDictionary // // main.m // MutableCopy // // Created by rayln on 13-9-13. // Copyright (c) 2013年 rayln ...
// // main.m // Refect // // Created by Rayln Guan on 9/13/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <Foundation/Foundation.h> #import "Student.h" #import "Person.h" int main(int argc, const char * argv[]) { @autoreleasep ...

NSNull

NSNull是为了解决字典等各种类不能放null而用的,这个对象可以放入字典中 NSNull *n = [NSNull null]; 就这么简单
// // main.m // NSValue // // Created by Rayln Guan on 9/9/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <Foundation/Foundation.h> void value1(){ //point是结构体。没办法直接放入array当中,这时候我们需要用NSValue进行包装后放入 CGPoint point = CGPointMake(5, 10); NSMutabl ...
// // main.m // NSNumber // // Created by rayln on 13-9-7. // Copyright (c) 2013年 rayln. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { //NSNumber是包装基本类型 NSNumber *number = [NSNumbe ...
// // main.m // NSMutableArray // // Created by rayln on 13-9-7. // Copyright (c) 2013年 rayln. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableDictionary *dic = [NSMutableDictionary ...
字典相当于Java中的Map, 有key和value // // main.m // NSDictionary // // Created by rayln on 13-9-6. // Copyright (c) 2013年 rayln. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSDictionary *dic = [N ...
NSMutableArray是属于NSArray的子类,又所有的NSArray方法,是一个可变数组 // // main.m // NSMutableArray // // Created by Rayln Guan on 9/5/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepoo ...
main.m // // main.m // NSArraySort // // Created by Rayln Guan on 9/4/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <Foundation/Foundation.h> #import "Student.h" void arraySort1(){ NSArray *arr = [NSArray arrayWithObjects:@"1" ...
main.m // // main.m // NSArray // // Created by Rayln Guan on 9/4/13. // Copyright (c) 2013 Rayln Guan. All rights reserved. // #import <Foundation/Foundation.h> #import "Student.h" int main(int argc, const char * argv[]) { @autoreleasepool { #pragma mark 数组的 ...
Global site tag (gtag.js) - Google Analytics