- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 ios7遇到的问题
1: navigation 与tableview 挡住的问题: //for iOS version7 if ([self respondsToSelector:@selector(edgesForExtendedLayout)]){ self.edgesForExtendedLayout = UIRectEdgeNone; }2:naviga
2013-10-25 12:50:48 779
原创 ios类别categary
类别:对现有的类添加新的方法1. 不能添加实例变量2. 可能有名称冲突,最好加一个前缀。 #import@interfaceNSString (categaryName)-(int)StringSelf;-(NSString*)returnString;@end #import"NSString+categaryNam
2013-10-25 12:45:44 698
原创 ios内存管理规则ARC 最简单说明
ios内存管理简单规则: 1. alloc ,new ,copy操作时count =12. retain 操作时count +1;3. release 操作时 count -1;4. count=0时自动调用 dealloc方法,此方法不可手动调用,但是可以在里面释放资源。5. 通过retainCount方法获取当前计数值
2013-10-25 12:44:06 667
原创 iOS协议Protocol
1,检查对象是否遵守协议If( [ object conformsToProtocol:@protocol(protocolName)] = = YES){} 2. id object告诉编译器,这个对象遵守这个协议 3.协议遵守协议@protocol name1任何实现nameq的对象必须也实现name2的协议
2013-10-25 12:40:24 564
原创 ios单例Singleton
#import"ClassA.h" @implementation ClassA static ClassA *classA = nil; +(ClassA *)getClassA { if (classA == nil) { classA = [[super allocWithZone:NULL]init]; }
2013-10-25 12:37:56 401
原创 UITableView相关
1.UITableViewCell取消分隔线方法一:[historyTodayTableVC setSeparatorStyle:UITableViewCellSeparatorStyleNone];方法二: [historyTodayTableVC setSeparatorColor:[UIColor clearColor]];
2013-10-25 12:32:46 524
原创 UIImage相关
1、如果在程序中想对某张图片进行处理的话(得到某张图片的一部分)可一用以下代码:UIImage *image = [UIImage imageNamed:filename];CGImageRef imageRef = image.CGImage;CGRect rect = CGRectMake(origin.x, origin.y ,size.width,
2013-10-25 12:29:45 481
转载 Android 全屏或去掉标题栏
先介绍去掉标题栏的方法:第一种:也一般入门的时候经常使用的一种方法requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉标题栏注意这句一定要写在setContentView()方法的前面,不然会报错的第二种:在AndroidManifest.xml文件中定义<application android:icon="@draw
2013-09-12 13:05:53 471
转载 android color.xml
from:http://freedom0037.download.csdn.net/ #ffffff #fffff0 #ffffe0 #ffff00 #fffafa #fffaf0 #fffacd #fff8dc Shell">#fff5ee #fff0f5 #ffefd5 #ffebcd #ffe4e1 #ffe4
2013-06-18 18:13:47 359
原创 iOS 自定义回调方法(自用)
//// ViewController.h// 自定义回调方法测试//// Created by yangxinqiao on 13-6-17.// Copyright (c) 2013年 yangxinqiao. All rights reserved.//#import @interface ViewController : UIViewController@p
2013-06-17 23:02:59 672
转载 Android开发之日历控件实现
本文转自Android开发之日历控件实现本文介绍Android平台上几种有用的的日历控件。日历控件在Web开发中有很多的解决方案,而且很容易实现,但是在Android平台上的解决方案较少且不容易实现。下面给大家开始介绍几种及我们实现的示例。 我们大家都知道,在Android平台3.0中才新增了日历视图控件,可以显示网格状的日历内容,那么对于Android 3
2013-06-08 13:34:46 681
原创 ios打包遇到的一些小问题
1: product -archive disabled Maybe your current build configiuration is "Simulator"? It needs to be device build to activate "Build and Archive"链接
2013-06-06 15:29:34 390
原创 8 ios网络请求 Networking
//Downloading Asynchronously with NSURLConnection-(void) getDataAsynchronouslyFromUrl:(NSString *)urlString{ NSURL *url = [NSURL URLWithString:urlString]; NSURLRequest *request = [NSURL
2013-05-29 21:05:28 499
转载 Android mainfest文件中android属性
android:allowTaskReparenting是否允许activity更换从属的任务,比如从短信息任务 切换到浏览器任务。--------------------------------------------------------------------------------------android:alwaysRetainTaskState是否保留状态不变, 比
2013-05-29 10:40:20 370
原创 ios simulator 显示隐藏文件
仅仅显示 ios simulator /library/的隐藏文件 ,而不是整个mac的隐藏文件 ,在终端键入 chflags nohidden ~/Library/
2013-05-08 10:52:05 474
原创 iOS 项目改名
Xcode4下修改项目名称,执行以下操作:实测方法1:(我在下面操作之前的操作: 1.所有本地文件,xcode里面(building setting ....)的旧名字全改掉, 2. stop button 右边项目名-》duplicate scheme 都改过))1 选择项目名称。2 view-->Utiliti
2013-05-08 10:46:37 1094
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人