#import "ViewController.h"#import @interface ViewController (){ AVAudioPlayer *play; int index; NSArray *audiolist; NSMutableArray *imagel...
分类:
其他好文 时间:
2014-07-22 00:38:36
阅读次数:
241
继承与UIView,直接调用start和stop事件;@interface ActivityIndicatorView (){ UIImageView *_imageView; UILabel *_label;}@end@implementation ActivityIndicatorView-.....
分类:
移动开发 时间:
2014-07-22 00:06:37
阅读次数:
297
package?main
import?(
????"errors"
????"fmt"
)
type?item?struct?{
????Name?string
}
func?(i?item)?String()?string?{
????return?fmt.Sprintf("item?name:?%v",?i.Name)...
分类:
其他好文 时间:
2014-07-21 23:31:04
阅读次数:
310
SELECTDISTINCTpapf.person_id,papf.employee_number,papf.full_name,su.user_id,res.responsibility_id,res.application_id,su.user_name,res.responsibility_nameFROMhr.per_all_people_fpapf,applsys.fnd_usersu,fnd_responsibility_vlres,fnd_user_resp_groups_allfurg,fnd..
分类:
数据库 时间:
2014-07-21 19:11:42
阅读次数:
241
说到复合与存取,我做完这个例子,感觉就是类的集合,也没什么东西。
主Car类:
#import "Engine.h"
#import "Tire.h"
//汽车
@interface Car : NSObject
{
Engine *engine;
Tire *tires[4];
}
-(Engine *)engine;
-(void)setEngine:(Engine *) ...
分类:
其他好文 时间:
2014-07-21 16:42:12
阅读次数:
230
抽象工场一般都是用反射获取配置文件想要切换的目标(概念不多说,网上一大堆重复概念),本例中用Factory类来实现(以目标数据库为例):1,首先定义共用接口(各种目标类都要实现的) interface IDB { void DataBase(); }2,实现类(目标实...
分类:
其他好文 时间:
2014-07-21 08:26:31
阅读次数:
264
环境要求:JDK1.7,并配置Java的环境变量BaseDao 接口:/*** 要使得成为一个可供访问的接口,必须添加:@WebService* */@WebServicepublic interface BaseDao { //添加一个加法的接口 @WebResult(name="adddddd....
分类:
编程语言 时间:
2014-07-21 00:29:05
阅读次数:
333
一、简单工厂模式
1.动物管理系统的例子
public interface Animal{
public void eat();
}
public class Tiger implements Animal
{
public void eat(){
sysout.out.println("老虎会吃");
};
public void run(){
sysou...
分类:
其他好文 时间:
2014-07-20 23:03:30
阅读次数:
195
#import "ViewController.h"#import "FMDB.h"@interface ViewController ()- (IBAction)insert;- (IBAction)update;- (IBAction)delete;- (IBAction)select;@pro...
分类:
数据库 时间:
2014-07-20 23:00:11
阅读次数:
455
iOS开发中,发现UITextView没有想UITextField中textFieldShouldReturn:这样的方法,那么要实现UITextView return键隐藏键盘,可以通过判断输入的字符是不是回车符来实现。首先,声明要实现UITextView 的delegate。@interface...
分类:
其他好文 时间:
2014-07-20 21:31:57
阅读次数:
224