- 博客(10)
- 资源 (9)
- 收藏
- 关注
原创 ios 图片拉伸 产生气泡效果
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。根据设
2012-12-25 11:02:48 9262 1
原创 ios URL Scheme
Add Row URL types,然后按照上面的设置,URL identifier 自定义,item(todolist部分) 自定义;上面显示item1实际为item0;下面的为接收到外部调用的时候程序启动,响应方法,在safari输入:todolist://com.acme.ToDoList ,- (BOOL)application:(UIApplication *)ap
2012-12-24 11:35:18 5844
原创 获取UITableView 的cell 及其cell上的controll
假设定义了一个UITableView *myTableView;sectionIndex为row所在的Section,rowIndex及row所在行UITableViewCell *cell = [myTableView cellForRowAtIndexPath:[NSIndexParh indexPathForRow:rowIndex inSection:sectionIndex];
2012-12-21 11:06:29 24017
原创 ios 获取指定路径文件大小
-(long long) fileSizeAtPath:(NSString*) filePath{ NSFileManager* manager = [NSFileManager defaultManager]; if ([manager fileExistsAtPath:filePath]){ return [[manager attributesOfItemAtPa
2012-12-15 10:57:41 5349
原创 常用路径、方法总结
常用路径工具函数NSString * NSUserName(); 返回当前用户的登录名 NSString * NSFullUserName(); 返回当前用户的完整用户名 NSString * NSHomeDirectory(); 返回当前用户主目录的路径 NSString * NSHomeDirectoryForUser(); 返回用户user的主目录
2012-12-14 11:14:14 1337 1
原创 ios (ASIHTTPRequest)获取下载文件大小(size)
[request setDidReceiveResponseHeadersSelector:@selector(didReceiveResponseHeaders:)];- (void)didReceiveResponseHeaders:(ASIHTTPRequest *)request{ NSLog(@"didReceiveResponseHeaders %@",[request.r
2012-12-13 14:44:11 4829
原创 NSTimer 小结
创建一个 Timer+ scheduledTimerWithTimeInterval: invocation: repeats:+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo;+ sche
2012-12-11 10:44:25 812
原创 关于可移动Button的定制
在开发的过程中,有时候需要用到可以移动的Button,这就需要自己去写一个了;设计思路:通过重写几个touch方法- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { if (!isMove && !isCancelTouch) { [delegate clickedActi
2012-12-10 15:39:45 878
原创 ios 全屏/正常 切换时view.frame 的结构设置
if(bt.tag == 100){//转全屏 bt.tag = 101; [[UIApplication sharedApplication] setStatusBarHidden:YES]; self.view.frame = CGRectMake(0, 0, 320, 480); /* if (orientation == UI
2012-12-04 10:46:39 3801
原创 ios 获取当前屏幕的方向 隐藏状态栏
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;获取当前屏幕的方向;[[UIApplication sharedApplication] setStatusBarHidden:YES];隐藏状态栏;
2012-12-04 10:39:57 6646
teleport-assist-macos-3.5.5.dmg
2021-03-18
Genymotion 2.5.4 reg.exe 文件
2015-10-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人