- 博客(14)
- 资源 (19)
- 问答 (3)
- 收藏
- 关注
转载 从URL加载图像
+ (UIImage *) imageFromURLString: (NSString *) urlstring{ // This call is synchronous and blocking return [UIImageimageWithData:[NSDatadataWithContentsOfURL:[NSURLURLWithString:u
2012-08-24 14:46:05 441
转载 ios本地推送
第一步:创建本地推送// 创建一个本地推送UILocalNotification *notification = [[[UILocalNotification alloc] init] autorelease];//设置10秒之后NSDate *pushDate = [NSDate dateWithTimeIntervalSinceNow:10];if (notificatio
2012-08-23 15:05:54 1638
转载 ios---超链接的UILabel教程
ios---超链接的UILabel教程继承UILabel,实现自定义的UIabel,当点击时,打开网页.h文件复制代码#import @class MyLabel;@protocol MyLabelDelegate @required- (void)myLabel:(MyLabel *)myLabel touc
2012-08-20 15:20:14 7616
转载 sharekit简单使用说明
sharekit简单使用说明sharekit简介:sharekit是IPhone开发的第三方库,可以实现将图片、文字、文件保存到相应网站(例如:facebook、twitter等)的功能;sharekit简单使用方法:一、首先在工程文件中导入3个framework文件:1.MessageUI.framework.2.SystemC
2012-08-15 14:22:07 1183
转载 自定义默认生成的导航栏 标题 颜色 返回按钮
自定义默认生成的导航栏 标题 颜色 返回按钮 (2012-06-08 22:48:39)一 修改导航栏颜色 导航栏在哪个页面代码放在那里面 self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:(21.0/255.0) green:(153.0 / 255.0) blue:(
2012-08-15 09:42:10 5197
转载 IOS程序名称及内容国际化(本地化)
IOS程序名称及内容国际化(本地化)1、IOS程序名称国际化1.1 新建一个Single View app模版项目,命名为Localization。1.2 新建后,可以看到工作目录结构文件如下,单击InfoPlist.strings,查看右边的属性,在Localization栏添加语言。 1.3 添加完成后打开对应语言文件,比如Engl
2012-08-15 09:13:38 964
转载 UIlable UITextField的用法
UIlable的用法 (2012-07-05 22:37:30)标签: it分类: iphone开发一、UILabel(1)初始化UILabel12345678910111213UILabel *scoreLabel = [ [UI
2012-08-13 14:04:22 621
原创 navigationController push的view不添加返回按钮
UIBarButtonItem *backbtn = [[UIBarButtonItemalloc] init]; backbtn.title =@""; self.navigationItem.backBarButtonItem =backbtn; [backbtnrelease];
2012-08-13 11:48:20 1628 1
原创 uibuttn UIButton
按钮添加事件UIButton *btn=[UIButtonbuttonWithType:UIButtonTypeRoundedRect]; btn.frame=CGRectMake(26,6, 135, 29); btn.alpha=0.1; [btn addTarget:selfaction:@selector(btn1)
2012-08-13 11:45:47 548
原创 navigationController返回
回到上一级目录[self.navigationController popViewControlleranimated:YES];选择回到哪一级目录[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:0] animated:
2012-08-13 11:43:36 708
原创 UINavagationBar设置背景图片,最简单的方法
给UINavagationBar设置一张背景图片,[navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navigationBar_bg.png"] forBarMetrics: UIBarMetricsDefault];希望对大家有帮助
2012-08-13 09:19:01 1553
原创 iOS 解决键盘挡住输入框的问题
依然如此,直接上代码,希望能够帮到你们。增加UITextFieldDelegate委托- (BOOL)textFieldShouldReturn:(UITextField *)textField { // When the user presses return, take focus away from the text field so that
2012-08-01 16:59:15 4355
原创 ios 判断当前的设备是那一种型号
废话也不多少,直接粘上代码,希望能够解决你们的问题。NSString *dangqianshebei=[NSString stringWithFormat:@"%@",[[UIScreen mainScreen]preferredMode]];NSRange this=[dangqianshebei rangeOfString:@"2048"];if (this.location !=
2012-08-01 16:55:04 2896
原创 iOS 调用系统发短信以及打电话功能
先介绍一种最简单的方法:调用打电话功能[[UIApplicationsharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];调用发短信功能[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"sms://10000"]];
2012-08-01 16:29:04 37351
根据全局变量判断设备是不是iphone5
2013-03-20
uiview移动到特定的位置在移动回来,伴随着背景颜色以及大小的改变
2013-02-27
使用AsyncSocket简单的发送消息到打印机
2012-12-27
TA创建的收藏夹 TA关注的收藏夹
TA关注的人