码迷,mamicode.com
首页 >  
搜索关键字:nsdate nsstring    ( 5023个结果
UIView中的动画设置
两种状态的改变通过动画来渐变,设置动画效果,一般采用的方式有以下几种:方式一:[UIView beginAnimations:(NSString *) context:];[UIView setAnimationDuration:];/*****这里插入需要产生动画的片段*****/ [UIV...
分类:其他好文   时间:2014-07-22 23:09:14    阅读次数:270
iOS 基础类解析 - NSString
iOS 基础类解析 - NSString...
分类:移动开发   时间:2014-07-22 23:01:34    阅读次数:553
如果AlertView输入框为空,则禁止点击确定按钮
//UIAlertView的代理方法(创建UIAlertView之后,copy此代理方法即可)- (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView{ //1.取出输入框中的文字 NSString *text .....
分类:其他好文   时间:2014-07-22 23:00:34    阅读次数:330
Object C (2) --- NSString的创建
NSString *str1 = @"a string"; NSString *str2 = [[NSString alloc] init]; str2 = @"a string"; [str2 release]; NSString *str3 = [[NSString...
分类:其他好文   时间:2014-05-02 09:04:17    阅读次数:185
iOS开发中访问相册摄像像头
iOS开发中访问相册摄像像头 源码下载地址http://download.csdn.net/detail/jingjingxujiayou/7270479 在AppDelegate.m文件中 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launch...
分类:移动开发   时间:2014-04-30 22:27:38    阅读次数:497
iOS Base64转码(使用ios7系统自带编码库 和 GMTBase64 两种方式)
demo下载地址:http://pan.baidu.com/s/1i3LvaDZ 在iOS7 中系统提供了base64 的转码方式 示例如下:     NSData* originData = [originStr dataUsingEncoding:NSASCIIStringEncoding];     NSString* encodeResult = [origi...
分类:移动开发   时间:2014-04-30 22:26:40    阅读次数:458
IOS UITextView加上placeholder
UITextView上如何加上类似于UITextField的placeholder呢,其实在UITextView上加上一个UILabel,然后再实现 - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text这个代理方法就可以了。 ...
分类:移动开发   时间:2014-04-29 13:42:21    阅读次数:337
ios 得到文件夹大小 进率是1000
- (CGFloat)folderSizeAtPath:(NSString *) folderPath {     NSFileManager * manager = [NSFileManager defaultManager];          if (![manager fileExistsAtPath:folderPath])     {       return 0;   ...
分类:移动开发   时间:2014-04-29 13:36:20    阅读次数:379
IOS Object和javaScript相互调用
在IOS开发中有时会用到Object和javaScript相互调用,具体步骤如下: 1. Object中执行javascript代码,这个比较简单,苹果提供了很好的方法 - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script 2. javascript执行过程中返回给Object的数据或者调用Obje...
分类:移动开发   时间:2014-04-29 13:26:21    阅读次数:319
iOS如何找到自己的沙盒
iOS如何找到自己的沙盒 在ios开发我们会用到沙盒,由于自己对沙盒理解的不够,所以找不到沙盒文件在哪里,当然要知道路径了 例如我的路径 NSString* cachepath = [NSHomeDirectory()stringByAppendingString:@"Douments"]; ASIDownloadCache* cache = [[ASIDownloadCache a...
分类:移动开发   时间:2014-04-29 13:12:21    阅读次数:402
5023条   上一页 1 ... 499 500 501 502 503 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!