码迷,mamicode.com
首页 >  
搜索关键字:interface method/field    ( 13706个结果)
ios学习笔记2
类的构建Student.h#include @interface Student:NSObject{ int age;}-(int) age;-(void) setAge:(int) newAge;+(id) title;//+为类方法,相当于java中的static,另外字符串返回值使用id...
分类:移动开发   时间:2015-05-09 16:18:54    阅读次数:129
使用MediaPlayer框架实现简单音乐播放器-陈棚
该项目需要使用MediaPlayer框架,因此程序需要先为该项目添加MediaPalyer框架,并在上面控制器类的实现部分使用#import导入该框架的头文件程序清单:@interface FKViewController (){ MPMediaPickerController* mpc; ...
分类:其他好文   时间:2015-05-09 14:47:51    阅读次数:104
使用LKDBHelper 插入相同id时候应该是更新数据而不是插入新的数据
要实现使用LKDBHelp 插入相同id时候应该是更新数据而不是插入新的数据例如#import "JSONModel.h"@interface InfoModel : JSONModel@property (nonatomic,copy)NSString *name;@property (nonat...
分类:数据库   时间:2015-05-09 14:44:07    阅读次数:222
const static 在oc中的用法
const表示不能修改 static表示作用域限定在本文件中// EOCAnimatedView.h#import @interface EOCAnimatedView : UIView- (void)animate;@end// EOCAnimatedView.m#import "EOCAnima...
分类:其他好文   时间:2015-05-09 13:17:33    阅读次数:95
关闭+重启本地连接
最近来时断线,必须关闭本地连接再重启本地来接才能正常上网。所以上完查了一下cmd命令的实现。 关闭本地连接命令: netsh interface set interface "本地连接" disabled 重启本地连接命令:netsh interface set interface "本地连...
分类:其他好文   时间:2015-05-09 11:40:38    阅读次数:128
protocol 和 delegate
步骤1、发出协议(在发协议者.h文件 下@interface-@end 上边) @protocol hireOneMaid @required//必须要实现的方法(默认)//打扫房间- (void)cleanHouse;//照看孩子- (void)lookayMyBaby;//给我做饭- (vo.....
分类:其他好文   时间:2015-05-09 11:35:45    阅读次数:98
代码创建图片轮换; 代码创建控件时,如何将控件定义成属性
代码创建图片播放 #import "ViewController.h" #define kLength 15 @interface ViewController ()   @property(nonatomic, weak)UIImageView *myImage; @property(nonatomic, weak)UILabel *myLabel; @property(nonat...
分类:其他好文   时间:2015-05-09 10:21:36    阅读次数:131
对于flat_interface与public_interface的理解
对于这两个interface含义的理解一波三折,下面我把各种理解都记录下来.2014-9-23#可以把flat_interface理解为Openstack整套生态系统内部的网络接口,内部各节点之间相互通讯用的#可以把public_interface理解为Openstack系统之外的面向管理员,面向控...
分类:其他好文   时间:2015-05-09 10:07:30    阅读次数:194
ios UIview And Button TomCat
//// ViewController.h// 07-TomCat//// Created by zjj on 15/5/8.// Copyright (c) 2015年 zjj. All rights reserved.//#import @interface ViewController...
分类:移动开发   时间:2015-05-08 23:36:14    阅读次数:225
php设计模式之命令链模式
命令链模式:    命令链模式以松散耦合主题为基础,发送消息、命令和请求,或通过一组处理程序发送任意内容。每个处理程序都会自行判断自己能否处理请求。如果可以,该请求被处理,进程停止。您可以为系统添加或移除处理程序,而不影响其他处理程序。 1.interface Validator   2.{   3.    /**   4.     * The...
分类:Web程序   时间:2015-05-08 22:12:50    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!