- 博客(8)
- 资源 (19)
- 问答 (3)
- 收藏
- 关注
转载 定义全局变量
AppDelegate.h@interface AppDelegate :UIResponder UIApplicationDelegate>@property (strong,nonatomic)UIWindow *window;@propertyBOOL isLogin;@endAppDelegate.m@implemen
2013-03-20 16:36:01 800
转载 nsfilemanger 怎么求沙盒目录下某一文件夹的大小
+(float)fileSizeForDir:(NSString*)path//计算文件夹下文件的总大小{ NSFileManager *fileManager = [[NSFileManager alloc] init]; float size =0; NSArray* array = [fileManager contentsOfDirecto
2013-03-20 13:07:30 2096
转载 ios开发之技巧总结
iphone程序中实现截屏的一种方法在iphone程序中实现截屏的一种方法://导入头文件#import QuartzCore/QuartzCore.h//将整个self.view大小的图层形式创建一张图片image UIGraphicsBeginImageContext(self.view.bounds.size);[self.view.layer renderInConte
2013-03-20 11:37:02 2824
转载 怎样判断ios app 第一次启动
本文转自http://blog.csdn.net/jinglijun/article/details/7306836一个有用的例子是发送一个分析实例。这可能是一个很好的方法来确定有多少人下载实用应用程序。有人会说:“但是,嘿,苹果AppStore已经告诉我,应用程序的下载量了”。流行的解决方案是在大多数地方是用[NSUserDefaults standardUserDefaul
2013-03-18 17:42:31 1069
转载 ios6,tableView设置背景透明无效
这个问题只在UITableViewStyleGrouped类型的UITableView中出现,UITableViewStylePlain类型的tableView没有这个问题,因为Group类型的TableView有个backgroundView,而plain类型的TableView没有(backgroundView属性为nil),目前看来,这可能因为backgroundView在中间挡住了背景色。
2013-03-18 17:34:35 5026
原创 导入图片的问题
Not a PNG filCommand /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure解
2013-03-18 17:27:28 1020
转载 nsstring
本文转自http://blog.csdn.net/amdbenq/article/details/7869166/将str的最后一个字符去,如果是存储的汉字,要-2,因为汉字占用2个字节。str = [str substringToIndex:[str length] - 1];//1、创建常量字符串。 NSString *astring = @"Th
2013-03-07 12:09:57 1715
转载 将字符串切割成数组 componentsSeparatedByString
本文转自http://blog.sina.com.cn/s/blog_65de54500100unfd.html将字符串切割成数组- (void)viewDidLoad{ NSString *a = [[NSString alloc] initWithString : @"冬瓜,西瓜,火龙果,大头,小狗" ]; NSArray *b
2013-03-04 18:09:32 15948
根据全局变量判断设备是不是iphone5
2013-03-20
uiview移动到特定的位置在移动回来,伴随着背景颜色以及大小的改变
2013-02-27
使用AsyncSocket简单的发送消息到打印机
2012-12-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人