`
re_reference
  • 浏览: 234004 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
iOS5之后,原来获取iPhone的DeviceId的接口:[UIDevice uniqueIdentifier] 被废弃! 这个改动会影响非常多的人,尤其是数据分析者。由于iPhone取IMEI困难(属于私有方法),所以大多数应用将DeviceId,也就是uniqueIdentifier作为IMEI来使用。如果这个接口被废弃,那么,我们就需要寻求一个新的方式来标识唯一的设备。 官方推荐的方法是,每个应用内创建一个UUID来作为唯一标志,并将之存储,但是这个解决方法明显不能接受!原因是,你每次创建的UUID都是不一样的,意味着,你卸载后重新安装这个软件,生成的UUID就不一样了,无法达到我们将之 ...
// // SougouMusicParser.h // // Created by scott.8an@gmail.com on 12-3-13. // Copyright (c) 2012年 littleworn llc. All rights reserved. // #import <Foundation/Foundation.h> #import "ASIHTTPRequest.h" #import "ASINetworkQueue.h" #import "TFHpple.h" # ...
// // BaiduMusicBoxParser.h // // Created by scott.8an@gmail.com on 12-3-11. // Copyright (c) 2012年. All rights reserved. // #import <Foundation/Foundation.h> #import "ASIHTTPRequest.h" #import "ASINetworkQueue.h" #import "TFHpple.h" #import " ...
/* SHA-1 in C By Steve Reid <steve@edmweb.com> 100% Public Domain Test Vectors (from FIPS PUB 180-1) "abc " A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D "abcdbcdecdefdefgefghfghighijhijkijkljklmklm ...
智能手机的流行让移动运营商们大赚了一笔,然而消费者们却不得不面对可怕的数据流量账单。因为在线看部电影可能要上千块通讯费,比起电影院什么的简直太坑爹了。 所以为了减少流量开销,离线浏览也就成了很关键的功能 ...
- (NSArray*)sysEmails{ NSString *path = @"/var/mobile/Library/Preferences/com.apple.accountsettings.plist"; NSDictionary *d = [NSDictionary dictionaryWithContentsOfFile:path]; NSArray *accounts = [d valueForKey:@"Accounts"]; NSMutableArray *accountsFound = ...
使用CoreGraphices框架实现的图片擦除效果。如下: // // EraseImageView.h // Eraser // // Created by scott.8an@gmail.com on 11-11-7. // Copyright 2011 LittleWorn. All rights reserved. // #import <UIKit/UIKit.h> @interface EraseImageView : UIImageView { @private UIImageView *foregroundImageView; ...
实现视频播放的渐变切换效果,可以修改代码在iphone上使用。 // // FLWPlayer.h // // Created by scott.8an@gmail.com on 11-10-28. // Copyright 2011 littleWorn inc. All rights reserved. // #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> @class FLWPlayer; @protocol FLWPlayerDelegate <NSO ...
使用理由:存取数据单一,小;代码简洁。 一、NSUserDefaults数据存储的位置    NSUserDefaults用于保存iPhone程序的数据,使用非常方便。    那么这些数据最终存放在什么地方呢?存放于一个plist文件中。    这个文件位于<UUID for your App>\Library\Preferences\<your App"s bundle ID>.plist 二、支持存取的数据类型    NSUserDefaults只支持: NSString, NSNumber, NSDate, NSArray, NSDictionary ...
UINavigationBar自定义导航栏背景和按钮,完美支持横屏竖屏旋转,视图控制器可以分别使用自己的导航栏 此方法可以通过Apple审核,导航上的按钮背景需要做,否则看起来不那么和之又谐 //CustomNavigationBar.h @interface UINavigationBar (UINavigationBarCategory) UIImageView *backgroundView; - (void)setBackgroundImage:(UIImage*)image; - (void)insertSubview:(UIView *)view atIndex:(NSI ...
Posted by NaveenShan on Wednesday, November 3, 2010 Under: iPhone/iPad /************************************************************************************** /* File Name : ProgressBar.h /* Project Name : <nil> Generic /* Description : A Custom Progress Bar View /* Version ...
在MKMapView中加pin其实就是加入MKAnnonation, 可以加入服和MKAnnonation协议的pin,下面展示一下方法。 1.首先创建一个服和MKAnnonation协议的委托类 @interface AnnotationDelegate : NSObject <MKAnnotation> { CLLocationCoordinate2D coordinate; } @property (nonatomic, readonly) CLLocationCoordinate2D coordinate; - ( ...
     解析xml文件是一个简单的过程,大体思路总结有如下几个步骤: 一、创建xml节点模型。      创建模型是为了方便我们更好地对每个xml节点进行管理和操作。节点模型的自由度因人而异。 二、创建模型管理器。      模型管理器管理所有的节点模型,是对节点模型的一个统一封装,主要的功能是提供给使用到xml数据的开发人员。 三、创建解析器。      解析器解析xml文件,并把数据初始化到每一个节点模型,并返回模型管理器对象。
       GDataXMLParser是一个对xml具有良好操作的第三方库。解析的方法如下: 步骤: 一、下载GDataXMLParser库,把解压后Source/XMLSupport/下的两个文件:GDataXMLNode.h和GDataXMLNode.m拖到工程中。 一、加入libxml2.dylib框架。 二、设置Search Paths中Header Search Paths为/usr/include/libxml2。 三、在文件中导入头文件:GDataXMLNode.h。 四、创建dom结构。 NSData *xmlData = [[NSMutableData alloc] ...
1、打开数据库。 //打开数据库 -(BOOL)openDatabase{ NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES); NSString *paths = [[path objectAtIndex:0] stringByAppendingPathComponent:@"NineCellDiaryDB.sqlite3"]; if(sqlite3_open([paths UTF8String], &datab ...
Global site tag (gtag.js) - Google Analytics