This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <termios.h> | |
#import <time.h> | |
#import <sys/ioctl.h> | |
//UCS2编码支持 | |
@implementation NSString(UCS2Encoding) | |
- (NSString*)ucs2EncodingString{ | |
NSMutableString *result = [NSMutableString string]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <termios.h> | |
#import <time.h> | |
#import <sys/ioctl.h> | |
NSString *sendATCommand(NSFileHandle *baseBand, NSString *atCommand){ | |
NSLog(@"SEND AT: %@", atCommand); | |
[baseBand writeData:[atCommand dataUsingEncoding:NSASCIIStringEncoding]]; | |
NSMutableString *result = [NSMutableString string]; | |
NSData *resultData = [baseBand availableData]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// KSDIdlingWindow.h | |
// | |
// Created by Brian King on 4/13/10. | |
// Copyright 2010 King Software Designs. All rights reserved. | |
// | |
// Based off: | |
// http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// KSDIdlingWindow.h | |
// | |
// Created by Brian King on 4/13/10. | |
// Copyright 2010 King Software Designs. All rights reserved. | |
// | |
// Based off: | |
// http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSData+AESCrypt.h | |
// | |
// AES Encrypt/Decrypt | |
// Created by Jim Dovey and 'Jean' | |
// See http://iphonedevelopment.blogspot.com/2009/02/strong-encryption-for-cocoa-cocoa-touch.html | |
// | |
// BASE64 Encoding/Decoding | |
// Copyright (c) 2001 Kyle Hammond. All rights reserved. | |
// Original development by Dave Winer. |