- 博客(13)
- 资源 (37)
- 问答 (9)
- 收藏
- 关注
原创 UIImageView的for循环 之田字格与曲线行LayOut
for (int i =0; i9; i++) { UIImageView *image= [[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"ball_blue"]]; //image.frame = CGRectMake(50, 300, 50, 50); [se
2014-04-27 19:21:21 909
原创 查找mac系统下的隐藏文件以及隐藏文件夹的方法
打开终端,输入以下命令后回车:显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
2014-04-25 10:50:35 982
原创 UIButton 同时添加图片和文字 防止图片变形
for (int i =0; i3; i++) { for (int j =0; j10; j++) { if (i==2&&j>=2) { break; } UIB
2014-04-24 17:45:49 1156
原创 NSMutableArray创建使用方法和心得
如果知道一会儿要用的可变数组的大致大小建议使用initWithCapacity:n的方式,如果不知道就用init就好了,initWithCapacity:0 也许还不如init。在with capacity的情况下,在初始化的时候分配的内存为n*sizeof(elem)--假设capacity为n。如果在使用的过程中需要加入更多的元素需要给array扩容了,那么必须去找系统再次要求分配
2014-04-24 16:15:38 794
原创 UIAlertView 简单的弹出视图 用于TableViewCell中适用于简单的接口测试
#pragma mark - Table view delegate- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ if (tableView.tag ==TABLE_FIRST) {
2014-04-20 18:58:38 1586
转载 UIView转场动画 IOS
(一)[UIView beginAnimations:nil context:nil];[UIView setAnimationDuration:0.75]; //设置动画时间[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self
2014-04-16 11:23:58 707
原创 UINavigationController添加文字与UIButton添加文字图片
self.navigationItem.leftBarButtonItem=[[[UIBarButtonItemalloc] initWithTitle:@"返回"style:UIBarButtonItemStylePlaintarget:selfaction:@selector(pushAction)]autorelease]; UILabel *customLa
2014-04-11 09:40:33 696
原创 IOS开发-随机数
for (int i =0; i6; i++) { int rand =(arc4random()%21)+1000; { BOOL bIsFind = NO; do { bIsFind =NO; for (NSInt
2014-04-09 10:25:12 662
转载 NSTimer的用法 IOS
NSTimer *myTimer;1 调用一次myTimer =[NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(scrollTimer)userInfo:nil repeats:NO];2 重复调用myTimer =[NSTimer scheduledTimerWithTime
2014-04-04 14:31:35 642
原创 IOS 自定义标题文字
self.navigationItem.leftBarButtonItem=[[[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(pushAction)] autorelease]; UILabel *customLab = [[U
2014-04-04 12:02:16 855
原创 IOS 截取任意图片
#import //定义协议,方便扩展@protocol ClipViewDelegate @optional-(void) drawImageRect:(CGRect) rect;@end@interface ClipView : UIView{ CGPoint _startPoint; //手指起点 CGPoint _endPoint; /
2014-04-01 16:09:19 1154
UIImagePickerController
2014-06-18
View触发事件
2014-06-09
执行source ~/.zshrc 报错
2022-06-04
mac 终端 source ~/.zshrc报错
2022-04-09
Mac OS 外置硬盘没有挂载成功
2021-07-18
更新了RVM 还是报错 mac系统,求解啊
2020-07-27
Mac电脑NPM环境变量设置问题
2020-04-24
Mac 终端环境变量设置问题
2020-04-24
OpenCV环境搭建以及相关项目的开发
2015-01-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人