一. 基本函数
根据 sel 得到 class 的实例方法
Method class_getInstanceMethod(Class cls, SEL name)
根据 sel 得到 class 的函数指针
IMP class_getMethodImplementation(Class cls, SEL name)
给 class ...……
// main.m
// HelloWorld
// Created by jimmy.yang on 11-1-24.
// Copyright 2011 __MyCompanyName__. All rights reserved.
#import amp;amp;lt;Foundation/Foundation.hamp;amp;gt;
//定义“几何形状 ...……
Convert NSString to int
NSString *aNumberString = @amp;quot;123amp;quot;;
int i = ;
Convert int to NSString
int aNumber = 123;
NSString *aString = [NSString stringWithFormat:@amp;quot;%dam ...……
代码
//
// CalculatorViewController.m
// Calculator
//
// Created by sskset on 5/28/14.
// Copyright (c) 2014 shanke. All rights reserved.
//
#import amp;quot;CalculatorViewController.hamp;quot; ...……