摘要:
官方代码发短息和邮件添加MessageUI.framework 库发送信息- (IBAction)showSMSPicker:(id)sender{ // You must check that the current device can send SMS messages before you ... 阅读全文
摘要:
http://www.cocoachina.com/bbs/read.php?tid-31300.html 启蒙内容http://blog.csdn.net/nono_love_lilith/article/details/7573636 一个人的博客 阅读全文
摘要:
//// UDP网络数据发送管理 该类主要用户封装要发送的数据,和解析udp数据#import #import "DeviceInfo.h"#import "TimeingInfo.h"#define setbit(x,y) x|=(1> (pos)&1 //用宏得到某数的某位typedefenum{ SingleTimeing,//单次定时 WeekTimeing,//周定时 SingleSection,//单次时间段 WeekSection,//周时间段 }SendTimeingType;@interface NetWordDataMa 阅读全文
摘要:
//// 设备数据管理类#import #import "DeviceInfo.h"@interface DeviceDataManager : NSObject{ NSMutableArray *dataArray;}+(DeviceDataManager *)instance;-(NSMutableArray *)allDeviceData;//返回所有本地存储的设备-(DeviceInfo *)getDeviceInfoWith:(NSString *)mac;//根据mac地址返回该设备的信息-(BOOL)insertOrReqlaceSignalDevice:(D 阅读全文
摘要:
//// 该类管理所有的UDP发送#import #import "AsyncUdpSocket.h"@protocolUDPManagerDelegate;#define fromHostKey @"fromHost"#define dataKey @"data"#define socketTypeKey @"socketType"#define errorTypeKey @"error"typedefenum{ NewDevice=0x01,//设备发现 AddDevice=0x02,//添 阅读全文
摘要:
//// 该类管理设备的图标#import typedefenum { diandeng=0,// chazuoSel, chazuo,// diandengSel, dianshi,// dianshiSel, dianfanbao,// dianfanbaoSel, gongfang,// gongfangSel, fenshan,// fenshanSel, kongtiao,// kongtiaoSel,}ButtonCenterIco;@interface ImageDataManage : NSObject+(ImageDataManage ... 阅读全文
摘要:
#import @interface ByteUnit : NSObject//返回指定字节的10进制数+(unsigned long)subDataLength:(NSData*)_didReadData startCount:(int)_startCount lenghtCount:(int)_lengthCount;//将字节转为字符串形式+(NSString *)byteToString:(NSData *)data startCount:(int)_startCount lenghtCount:(int)_lengthCount;//字符串转字节数据+(NSData*)stringT 阅读全文
摘要:
// 该类负责发送2G/3G Http请求的数据#import #import "ASIHTTPRequest.h"#import "ASINetworkQueue.h"#import "ASIDownloadCache.h"#import "ASIFormDataRequest.h"#import #import "DeviceInfo.h"@protocolDataRequestManagerDelegate;//开关状态#define openCommd @"FE00001101 阅读全文
摘要:
#import #import "FMDatabase.h"#import "FMDatabaseQueue.h"#import "DeviceInfo.h"#import "DeviceGroupInfo.h"#import "TimeingInfo.h"#import "UserInfo.h"#define DeviceTable_SQL @"DeviceInfoTable"#define SQL_ContentKey @"content&q 阅读全文
摘要:
//// MenuHomeViewController.m// HFYS//// Created by Showsoft_002 on 13-8-14.// Copyright (c) 2013年 Showsoft_002. All rights reserved.//#import "MenuHomeViewController.h"#import "MainControlViewController.h"#import "iCarousel.h"#import "AssitentTimer.h"#import 阅读全文