- 博客(16)
- 收藏
- 关注
原创 CocoaPods 简单使用
1.http://www.360doc.com/content/14/0309/10/11029609_358970353.shtml2.http://code4app.com/article/cocoapods-install-usage假如已经安装了CocoaPods了。上边的链接都可以交如何安装,下边的内容也是上边链接整理出来的使用CocoaPods1
2014-07-16 14:10:57
304
原创 UISegmentedControl初试验
self.segmentedControl = [[UISegmentedControlalloc] initWithItems:@[@"你妹",@"我妹"]];self.segmentedControl.frame =CGRectMake(90,10, 140, 29);self.segmentedControl.selectedSegmentIndex =0
2014-06-09 22:52:46
262
原创 44.pop学习
#import "ZWYViewController.h"#import "pop/POP.h"@interface ZWYViewController ()@property (readwrite, assign) BOOL timerRunning;@property (readwrite, assign) BOOL isOpened;@property
2014-05-25 23:12:35
726
原创 43给UIView设置阴影
UIView *mView = [[UIView alloc] initWithFrame:CGRectMake(50, 50, 50, 50)]; [mView.layer setShadowColor:[[UIColor grayColor] CGColor]]; mView.backgroundColor = [UIColor yellowColor];
2014-05-24 23:33:21
272
原创 34.笔记
1.视图方法menviewDidLoad:当UIViewController第一次加载到内存时调用;viewWillAppera:(BOOL)animated*:在UIViewController的视图在屏幕上显示之前调用;viewDidAppear:(BOOL)animated*:在UIViewController的视图在屏幕上显示之后调用;viewWillDisappear:(BOOL)ani
2014-05-13 22:38:05
249
转载 32.iOS获取设备剩余存储空间
1.导入头文件#include #include 2.剩余空间- (BOOL) freeDiskSpaceInBytes{ struct statfs buf; long long freespace = -1; if(statfs("/var", &buf) >= 0){ freespace = (long lo
2014-05-10 01:17:31
311
原创 31.UIImageView 图片等比例压缩显示
1.写一个UIimage的类别 如:定义一个等比例压缩图片的方法//压缩图片- (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size{ // 创建一个bitmap的context // 并把它设置成为当前正在使用的context UIGraphicsBeginImageContext(s
2014-05-08 23:12:22
832
原创 30.Xcode replace 正则表达式替换
1.2.替换的语句的例子把[UIImage imageNamed:@"image”] 替换成 [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image" ofType:@"png"]]第一步: 要查找的字符串是:(\[UIImag
2014-05-07 22:49:48
605
原创 27.iOS 动画 旋转
//旋转UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(weight, 15, 15, 15)];imageView.image =NAV_UP;//0 - 180[UIView animateWithDuration:0.5 delay:0 options:UIViewAni
2014-05-04 21:25:18
216
原创 13.自定义UITabBarViewController
今天学习的是自定义UITabBarViewController1.xiao guo tu
2014-04-20 00:12:21
299
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人