IOS/iphone开发之常用代码
转载
精选
2012-01-11 14:36:48
370阅读
iphone开发常用代码
转载
精选
2012-02-20 17:43:02
199阅读
UITextInputTraits属性autocapitalizationType 设置键盘自动大小写的属性 UITextAutocapitalizationTypeNoneautocorrectionType property 设置是否有自动修改提示 UITextAutocorrectionTypeNoenablesReturnKeyAutomatically Boolean值-设置在用户没有输入是returnKey禁用,默认值NOkeyboardAppearance 设置键盘显示方式 除了默认模式 还有一个UIKeyboardAppearanceAlert模式keyboardType 设置
转载
2012-02-07 22:40:00
73阅读
2评论
- (NSString *)URLEncodedString:(NSString *)string{
NSString *result = (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
(CFStringRef)string,NULL,CFSTR("!*'();:@&=+$,/
转载
精选
2011-10-09 13:48:07
313阅读
更改cell选中的背景
UIView *myview = [[UIView alloc] init];
myview.frame = CGRectMake(0, 0, 320, 47);
myview.backgroundColor
转载
精选
2012-11-16 13:30:55
292阅读
更改cell选中的背景 UIView *myview = [UIView alloc] init]; myview.frame = CGRectMake(0, 0, 320, 47); myview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"0006.png"]; cell.selectedBackgroundView = myview;在数字键盘上添加button://定义一个消息中心[NSNotificationCenter defaultCenter] addObs..
转载
2012-02-07 20:12:00
53阅读
2评论
转自:我也叫梓珈的博客http://fei263.blog.163.com/
更改cell选中的背景
UIView *myview = [[UIView alloc] init];
myview.frame = CGRectMake(0, 0, 320, 47);
&
转载
精选
2009-12-14 12:23:23
3203阅读
点赞
iphone 开发常用代码2
转载
精选
2012-04-13 17:14:00
563阅读
更改cell选中的背景
UIView *myview = [[UIView alloc] init];
myview.frame = CGRectMake(0, 0, 320, 47);
myview.backgroundColor = [UIColor colorWithPat
转载
2011-08-08 14:36:40
274阅读
代码: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. NSLog(@"--系统的所有字体--%@",[self getAllSystemFonts]); NS
转载
2017-05-17 10:22:00
111阅读
2评论
因为iPhone X和iPhone XS的尺寸比是一样的,只需要把这两张图片补上就行。 具体原理性的东西就多说了,因为iP
转载
2023-08-22 11:08:38
188阅读
1 前言在IOS开发中,相信大家一定听说过委托,数据源,target,action等等,今天我们就来简单的学习一下这些内容。2 详述2.1 委托和数据源大家是否曾经有不知道如何去执行一项任务的时候?或许是修理一台洗碗机或者补一双袜子。你可以学者自己做,或者找人帮你完成你不懂的地方,这就是委托。委托(delegation)的设计模式,可以让你的程序实现系统类定义好的接口。其工作方式:把一个对象介绍给另一个可以回答任何问题的对象。通过分配一个delegate,你可以在代码定义相关的接口来相应请求或者状态的变化。如果我们的对象想要成为一个委托对象,它需要按照一定的协议来实现。协议好比是一个合同,许多
转载
2013-06-06 22:46:00
6阅读
网络请求 (包含block 和 delegate)数据持久化技术手势处理’XML数据解析多线程实现核心动画编程地图定位功能CoreData数据持久化技术本地通知和推送通知常用宏定义网络封装#import @class NetWorkRequest;// 网络请求成功blocktypedef void...
原创
2022-05-14 11:43:31
329阅读
#include /* 说明 malloc, NULL, size_t */#include /* 说明 va_ 相关类型和函数 */#include /* 说明 strcat 等 */char *vstrcat(const char *first, ...){size_t len;char *retbuf;va_list argp;char *p;if(fir
转载
精选
2011-07-28 10:35:58
483阅读
#include /* 说明 malloc, NULL, size_t */#include /* 说明 va_ 相关类型和函数 */#include /* 说明 strcat 等 */char *vstrcat(const char *first, ...){size_t len;char *retbuf;va_list argp;char *p;if(fir
转载
精选
2011-07-28 10:35:54
205阅读
1、禁止手机睡眠[UIApplication sharedApplication].idleTimerDisabled = YES;2、隐藏表格某行cell- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
// 如果是你需要隐藏的那一行,返回高度为
转载
2023-07-14 20:57:49
72阅读
1. stringWithFormat 用法: [NSString stringWithFormat:@"Hig
转载
2012-09-20 17:24:00
70阅读
2评论
1.功能相近的方法要放在一起,并推荐使用#pragma mark - *来导航代码,切分代码块。这样可以方便函数的查找。并且可以使用快捷键control+6 来快速查找方法的位置。2.合理使用约定俗成的缩略词:alloc:分配; alt:轮流,交替; app:应用程序; calc:计算; dealloc:销毁、析构; func:函数、方法; horiz:水平的; info:信息;
转载
2023-09-04 13:06:17
235阅读
更改cell选中的背景 Java代码 //创建一个UIView对象
UIView *myview = [[UIView alloc] init];
//设置UIView对象的外观大小
myview.frame = CGRectMake(0, 0, 320, 47);
//设置UIView对象的背景色。 [UIColor colorWithPatternIm
转载
2023-07-23 19:02:41
26阅读
1、设置窗口格式为半透明getWindow().setFormat(PixelFormat.TRANSLUCENT);2、Android中在非UI线程里更新View的不同方法:* Activity.runOnUiThread( Runnable )* View.post( Runnable )* View.postDelayed( Runnable, long )* Hanlder3、全屏显示窗口requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_F
转载
2012-02-02 17:46:00
68阅读
2评论