码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
iOS UIActivityIndicatorView
#import "ViewController.h"@interface ViewController (){UIActivityIndicatorView *activity;}@end@implementation ViewController- (void)viewDidLoad { [su....
分类:移动开发   时间:2015-07-04 10:58:47    阅读次数:204
UIStepper
1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)appl...
分类:其他好文   时间:2015-07-04 08:27:18    阅读次数:113
UITextField的文本框部分文本以*的方式来显示
1 #import "AppDelegate.h" 2 3 @interface AppDelegate ()// 添加代理协议 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplicati...
分类:其他好文   时间:2015-07-03 18:50:22    阅读次数:121
iOS 展示二级页面
ViewController 调用#import "ViewController.h"@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; self.title = @"测试"; self.view.b...
分类:移动开发   时间:2015-07-03 18:50:15    阅读次数:134
将规整的字符串转化为字典型
#import "NSString+JSON.h"#import @interface NSString (JSON)+(NSDictionary *)parseJSONStringToNSDictionary:(NSString *)JSONString;@end@implementation N...
分类:其他好文   时间:2015-07-03 13:57:56    阅读次数:73
我是黑马-----OCget、set点语法
先定义一个Student类: 1 @interface Student : NSObject{ 2 int _age; 3 } 4 -(void)setAge:(int)newAge; 5 -(int)age; 6 @end 7 8 //实现 9 @implementation Stude...
分类:其他好文   时间:2015-07-03 00:04:02    阅读次数:131
OC基础5:继承
1、根类即是最顶层的类,父类也可称为超类;2、关于实例变量的继承: 只有声明在@interface部分的实例变量才能被子类继承:包括在类名后马上使用花括号声明的变量和使用@property声明的变量,都可以继承。如果完全声明在@implementation部分的变量,则属于私有变量,需要提供方法才能...
分类:其他好文   时间:2015-07-02 22:18:11    阅读次数:152
我是黑马-----OC中类的声明、创建、调用
OC中类的定义分为两部分:1)累的声明(规定当前类的:类名、属性、行为) 1 @interface 类名:父类名 2 3 { 4 5 //定义类的属性 6 } 7 8 //类的方法 9 10 @end2)类的实现:1 @implementation 类名2 3 //...
分类:其他好文   时间:2015-07-02 06:26:39    阅读次数:468
绘制图形-移动,旋转,阴影,渐变
// Only override drawRect: if you perform custom drawing. // An empty implementation adversely affects performance during animation. - (void)drawRect:(CGRect)rect {     UIBezierPath *path = [UI...
分类:移动开发   时间:2015-07-01 22:19:53    阅读次数:259
OC基础4:类和方法
1、类的声明(@interface)要放在以它自己名字命名的class.h文件中,而类的定义(@implementation)要放在相同名字的class.m文件中;2、import本地文件和import系统文件的格式是不同的:导入本地文件要用双引号,导入系统文件要用 ;如下: #import #i....
分类:其他好文   时间:2015-07-01 22:09:43    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!