
UI应用
文章平均质量分 59
vaercly
IOS应用开发
展开
-
将UITextField的内容设置到UILable上,求两个UITextField的和到UILable上
//// CCLAppDelegate.m// TestButton//// Created by lanouhn on 14-8-19.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import "CCLAppDelegate.h"@interface CCLAppDelegate原创 2014-08-19 23:47:20 · 905 阅读 · 0 评论 -
iOS开发必看的博客汇总
OneV's Denhttp://onevcat.com/破船之家http://beyondvincent.com/NSHipsterhttp://nshipster.cn/Limboy 无网不剩http://limboy.me唐巧的技术博客http://blog.devtang.com/Lex iOS noteshttp://ios.lextang.c原创 2014-10-29 21:36:09 · 1234 阅读 · 0 评论 -
iOS MKAnnotation协议为地图添加注解
添加地图注解,这个需要用到MKAnnotation这个协议,主要有两个UILabel类型的属性,title和subtitle,当用户点击小别针时候就会把相关信息显示出来,如下图:Google地图实现之三添加注解 - tergol - tergol的博客 大概的操作是这样的,先定义一个继承了MKAnnotation的类,第当需要加上注解的时候,就根据当前的region等信息,实例化出一个对像,原创 2014-10-27 10:15:12 · 1362 阅读 · 0 评论 -
iOS MKMapView嵌入地图
要看到那个google的地图,在实现上也相当简便。嵌入地图时需要MKMapView这个类,它有很多方法和属性,不过如果只是想得到基本的定位功能的话,只需实例化一个对像然后加到当前的view上就可以了。先介绍一下,它的几个常用的属性。 region 用来设置地图的那一部份被显示,它是一个结构体,定义如下: typedef struct{ CLLocationCoord原创 2014-10-27 10:13:10 · 1041 阅读 · 0 评论 -
iOS 真机不能显示图片问题
原创 2014-09-04 20:21:31 · 1996 阅读 · 0 评论 -
iOS 汉字转拼音
NSMutableString *ms = [[NSMutableString alloc] initWithString:@"我是中国人"]; if (CFStringTransform((__bridge CFMutableStringRef)ms, 0, kCFStringTransformMandarinLatin, NO)) { NSLog(@"P原创 2014-09-04 19:11:14 · 829 阅读 · 0 评论 -
iPhone相册,(UIScrollView,UIPageControl的综合应用)捏合放大缩小, 左右滑动切换图片
//// PhotoView.h// Homework_iPhonePhoto//// Created by lanouhn on 14-8-29.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import @interface PhotoView : UIView@propert原创 2014-08-31 22:04:57 · 1913 阅读 · 0 评论 -
网易新闻首页的实现,可以添加,移除标签,自动滚动图片,无限左右切换图片
//// RootViewController.h// Homework_163News//// Created by lanouhn on 14-8-30.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import @interface RootViewController : U原创 2014-08-31 22:17:06 · 1155 阅读 · 0 评论 -
滚动视图(UIScrollView)无限无缝左右切换图片,自动顺序加逆序循环播放图片
//// LoopView.h// Test_LoopScrollView//// Created by lanouhn on 14-8-30.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import @interface LoopView : UIView@property (原创 2014-08-31 22:12:49 · 1612 阅读 · 0 评论 -
iOS用户引导页的简单实现
//// RootViewController.m// LessonUIPageControl//// Created by lanouhn on 14-8-29.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import "RootViewController.h"@interfa原创 2014-08-31 22:22:04 · 1086 阅读 · 0 评论 -
在imageView依次添加7个手势, 1.点击哪个按钮,往imageView上添加哪个手势.(保证视图上只有一个手势). 2.轻拍:点击视图切换美女图片.(imageView上首先展示的美女
//// ControlView.h// HomeworkGestureRecognizer//// Created by lanouhn on 14-8-27.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import @interface ControlView : UIView原创 2014-08-28 08:23:27 · 1991 阅读 · 0 评论 -
捏合视图变化(视图的缩放), 单击随着鼠标移动, 双击放大视图,再双击还原视图
//// CLView.m// Homework_UIEvent//// Created by lanouhn on 14-8-26.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import "CLView.h"@interface CLView ()//{// CGPo原创 2014-08-26 21:41:04 · 887 阅读 · 0 评论 -
霓虹灯动态效果,限定文本框的输如长度
//// CCLAppDelegate.m// TestNeonLamp//// Created by lanouhn on 14-8-19.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import "CCLAppDelegate.h"@interface CCLAppDelega原创 2014-08-26 21:48:54 · 669 阅读 · 0 评论 -
iOS简易计算器的实现
//// CCLAppDelegate.m// TestCalculator//// Created by lanouhn on 14-8-20.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import "CCLAppDelegate.h"#import "CCLCalculator原创 2014-08-21 19:12:26 · 892 阅读 · 0 评论 -
iOS 拨打电话 拨打完以后会回到原来的应用
NSDictionary *dic = self.names[self.titles[indexPath.section]][indexPath.row]; NSString *phone = dic[@"phoneNumber"]; //1 特点: 直接拨打, 不弹出提示。 并且, 拨打完以后, 留在通讯录中, 不返回到原来的应用。 /* if (phone !=原创 2014-09-04 19:15:11 · 1197 阅读 · 0 评论 -
彩虹视图,霓虹灯静态效果
//// CCLAppDelegate.m// TestNeonLamp//// Created by lanouhn on 14-8-19.// Copyright (c) 2014年 vaercly@163.com 陈聪雷. All rights reserved.//#import "CCLAppDelegate.h"@interface CCLAppDelega原创 2014-08-19 23:46:59 · 1615 阅读 · 0 评论 -
XMPPFramework
XMPPExtensible Messaging and Present Protocol可扩展通讯和表示协议功能: XMPP用tcp传送XML流, 做即时通讯xmpp.orgobjcio.cnhttp://objcio.cnhttp://www.appcoda.comhttp://www.raywenderlich.com服务器环境: ejabberd和Openfireeja原创 2014-10-15 15:59:43 · 977 阅读 · 0 评论