自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (5)
  • 收藏
  • 关注

转载 IOS的触摸事件和手势处理

转载自:http://my.oschina.net/aofe/blog/268749iOS中的事件可以分为三大类:    1> 触摸事件      2> 加速计事件    3> 远程控制事件响应者对象    在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件.我们称之为"响应者对象".

2015-02-10 14:35:02 354

原创 UILabel 使用(UIKit.framework)

UILabel 使用如下:@implementation ViewController@synthesize _uiLabel;-(void)popToRootVC{}- (void)viewDidLoad{ [super viewDidLoad]; UIBarButtonItem *rightItem = [[UIBarButtonIte

2015-02-04 09:23:33 361

原创 NSObject 类的反射,方法反射(十五)

NSObject 类的反射,方法反射用法如下:#import "MS_NSReflect.h"#import "MS_Person.h"#import "MS_Student.h"@implementation MS_NSReflect-(void)showNSReflect{ //子类 与 基类 的比较 (isKindOfClass)返回值(true)

2015-01-29 10:24:21 312

转载 多控制器管理, UINavigationController

[objc] view plaincopyself.window=[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]];  // 新建一个导航控制器  UINavigationController *navigationController=[[UINavigationControlle

2015-01-28 11:36:29 304

原创 NSDate 获取当前日期(十四)

NSDate 获取当前日期:内容比较简单:#import "MS_NSDate.h"@implementation MS_NSDate@synthesize _nsDate;-(void)showDate{ //依据日期格式,输出当前日期 NSDate *date1 = [NSDate date]; NSDateFormatter *forma

2015-01-28 11:23:53 306

原创 NSFileManager 与 NSData 使用(十三)

NSFileManager 与 NSData 使用如下:#import "MS_NSData.h"@implementation MS_NSData@synthesize _nsData;-(void)showNSData{ //FileManager 使用 //创建文件目录 NSFileManager *fileManager = [NSFile

2015-01-28 10:52:41 279

转载 nil,Nil,null,NSNULL的区别与用法

1、nil:一般赋值给空对象;2、NULL:一般赋值给nil之外的其他空值。如SEL等;  举个栗子(好重啊~):    [NSApp beginSheet:sheet                modalForWindow:mainWindow                modalDelegate:nil //pointing to an object

2015-01-28 09:06:37 304

原创 NSValue 使用(十二)

NSValue 使用如下:#import "MS_NSValue.h"#import "MS_NSNumber.h"@implementation MS_NSValue@synthesize _nsValue;-(void)showNSValue{ //使用NSValue存储 c 字符串 char *cString = "This is C string

2015-01-27 17:28:50 335

原创 NSNumber 使用(十一)

NSNumber 使用如下:#import "MS_NSNumber.h"@implementation MS_NSNumber@synthesize _nsNumber;-(void)showNumber{ NSNumber *number1 = [NSNumber numberWithInt:10]; NSNumber *number2 =

2015-01-27 11:09:14 706

原创 NSMutableSet 使用(十)

NSMUtableSet 使用如下:#import "MS_NSMutableSet.h"@implementation MS_NSMutableSet@synthesize _nsMutableSet;-(void)showMutableSet{ _nsMutableSet = [NSMutableSet setWithCapacity:0]; for(

2015-01-27 10:25:40 438

原创 NSSet 使用(九)

NSSet 使用如下:#import "MS_NSSet.h"@implementation MS_NSSet@synthesize _nsSet;-(void)showNSSet{ /* NSSet到底什么类型,其实它和NSArray功能性质一样,用于存储对象,属于集合; NSSet , NSMutableSet类声明编程接口对象,无序的集合,在内存

2015-01-27 09:57:48 427

原创 NSMutableDictionary 使用(八)

NSMutableDictionary 使用如下:#import "MS_NSMutableDictionary.h"#import "SortedIndex.h"@implementation MS_NSMutableDictionary@synthesize _nsMutableDictionary;-(void)showMutableDictionary{

2015-01-27 09:13:16 493

转载 NSCopying 使用(转载)

在Objective-c中, 某个类遵守了NSCopying协议就代表这个类支持[obj copy]操作。在没有实现NSCopying协议的情况下调用对象的copy函数则会出现异常。NSCopying协议只有一个函数,即copyWithZone, 声明如下 :[objc] view plaincopy@protocol NSCopying  

2015-01-27 09:08:48 300

原创 NSMutableArray使用(七)

NSMutableArray 使用如下:#import "MS_NSMutableArray.h"@implementation MS_NSMutableArray@synthesize _nsMutableArray;-(void)showMutableArray{ //可变数组 _nsMutableArray = [[NSMutableArray al

2015-01-26 10:32:17 338

原创 NSDictionary 使用(六)

NSDictionary 使用如下:#import "MS_NSDictionary.h"@implementation MS_NSDictionary@synthesize _nsDictionary;-(void)showDictionary{ _nsDictionary = [[NSDictionary alloc] init]; //NSDict

2015-01-22 17:23:33 280

原创 NSArray使用(五)

NSArray 使用:#import "MS_NSArray.h"@implementation MS_NSArray@synthesize _nsArray;-(void)showNSArray{ _nsArray = [[NSArray alloc] initWithObjects:@"One",@"Two",@"Three", nil]; unsi

2015-01-22 13:48:13 311

原创 NSMutableString 使用(四)

NSMutableString 可变字符串的使用:#import "MutableString.h"@implementation MutableString@synthesize _mutableString;-(void)showMutableString{ _mutableString = [[NSMutableString alloc] initWith

2015-01-21 11:13:36 504

原创 ios 指针(三)

由于对ios 指针 以及 对 c 语言指针停留在初始状态,没有太高深的代码显示#import "PointerExample.h"@implementation PointerExample@synthesize _content,_number;/* 指向指针的指针 */-(void)pointerTest{ NSInteger *number = 10;

2015-01-21 10:14:46 321

原创 NSString 使用(二)

NSString 的使用:#import "Example.h"@implementation Example@synthesize mContent;-(void)showStruct{ }-(void)showString{ mContent = @"0123456789"; NSString *temp = @"123"; //重新

2015-01-20 17:29:30 306

原创 ios 变量声明(一)

ios变量声明:1:@interface中声明 *_content;2:@interface扩展category 中声明@property *mContent3:@implement@interface 中声明:#import @interface Example : NSObject{ @private NSString *_content ; }@e

2015-01-20 10:22:48 295

ADT-22.6.3 最新版本

ADT22.6.3最新版本,方便大家使用下载插件,ADT22.6.3最新版本

2014-05-16

Android蓝牙细节介绍

Android蓝牙开发详细介绍,关注蓝牙4.0开发的,可下来看看,或许对你有帮助

2014-05-16

ADT22.6.2最新ADT

最新ADT22.6.2,刚刚更新

2014-05-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除