
iOS_UI
文章平均质量分 83
jeffasd
这个作者很懒,什么都没留下…
展开
-
ios如何禁用旋转使用 MMDrawerConroller 是一些 ViewControllers 呢?
http://www.itstrike.cn/Question/f28d8be5-343b-41df-972e-50fa088d44f5.htmlios如何禁用旋转使用 MMDrawerConroller 是一些 ViewControllers 呢?我在我的应用程序从该链接中使用 MMDrawerController这种方式我在 AppDelegate 中设置根转载 2016-03-30 17:06:21 · 665 阅读 · 0 评论 -
入门 MMDrawerController
http://www.itstrike.cn/Question/7f68ee86-3fce-494d-8fe3-53a6943e976a.html想MMDrawerController工作,和我很难。在这里的是多少 app 我的演示图板中的结构:这里是如何我正试图初始化它从我的根视图控制器内://LCViewController.m#import转载 2016-03-30 17:09:37 · 651 阅读 · 0 评论 -
MMDrawerController 和 StoryBoard 配合使用
http://www.cocoachina.com/bbs/read.php?tid=187131MMDrawerController自己的例程和找到的例程都是以开启界面为CenterView的。在AppDelegate中配置好直接跑,而我要实现的是在NavigationController的第二级用这个MMDrawerController。如图 目前是在第转载 2016-03-30 17:11:10 · 1045 阅读 · 0 评论 -
侧边栏 MMDrawerController使用教程
http://www.shangxueba.com/jingyan/3168851.html// 第一步在AppDelegate.h中@property (strong ,nonatomic) MMDrawerController * drawerController;// 然后创建,这里是左中右三个页面,每个页面都用UINavigationController转载 2016-03-30 17:11:53 · 2798 阅读 · 0 评论 -
iOS Xib尺寸适配屏幕尺寸
有用过XIb 的同学 在自己设置 VC 下的子控件的Frame时 可能会发现 在ViewDidload 下面 获取 的 self.view.frame.size.height 是Xib的尺寸 非当前VC的尺寸,这就存在了Xib 的尺寸 和 屏幕的尺寸 不匹配的情况。这时 我们只需要 在 viewWillLayoutSubviews 获取 VC的frame即可。另外 在有XIb 的 View原创 2016-04-01 15:53:34 · 7016 阅读 · 0 评论 -
Core Animation系列之CADisplayLink
原文地址:http://blog.youkuaiyun.com/wzzvictory/article/details/22417181一直以来都想好好学习下CoreAnimation,奈何涉及的东西太多,想要一次性全部搞定时间上不允许,以后会断断续续的补全。最近项目里用到了CADisplayLink,就顺便花点时间看了看。一、简介1、所在框架CADisplayL转载 2016-04-06 14:57:49 · 324 阅读 · 0 评论 -
CADisplayLink结合UIBezierPath的神奇妙用
http://kittenyang.com/cadisplaylinkanduibezierpath/做过iOS动画的朋友都知道,动画中一大头疼之处就是弹性、形变之类扭曲的效果。iOS7开始,我们开始可以直接使用UiView的渲染动画API实现简单的弹性效果。+ (void)animateWithDuration:(NSTimeInterval)duration delay:(转载 2016-04-06 14:59:44 · 497 阅读 · 0 评论 -
iOS开发概述UIkit动力学
http://my.oschina.net/u/1378445/blog/335014UIDynamicAnimatorUIAttachmentBehavior(吸附)UIPushBehavior(推动)UIGravityBehavior(重力)UICollisionBehavior(碰撞)UISnapBehavior(捕捉)UICollection转载 2016-04-06 15:18:19 · 427 阅读 · 0 评论 -
UIMotionEffect和Home页背景视差效果
http://www.molotang.com/articles/1949.html当你打开装有iOS7以上的iPhone主屏,默认的背景是一幅蓝色的星空图片。当上下左右翻转iPhone时,有趣的效果将会出现,星空背景也会沿着各个方向发生位移,这与主屏上的各个App Icon形成了一种独特的视差效果。这不是iOS系统本身独有的。在iOS7之前,这种效果需要陀螺仪相关API的转载 2016-04-06 15:21:59 · 524 阅读 · 0 评论 -
iOS 检测版本升级比较好用的第三方类库Harpy的简单使用
http://blog.sina.com.cn/s/blog_b4df5c330102vd06.html- (void)checkUpdate{ if (flag) { [[HarpysharedInstance] setAppID:@"1111111"]; [[Harpy转载 2016-03-24 20:17:26 · 1005 阅读 · 0 评论 -
iOS开源弹幕库BarrageRenderer
http://blog.exbye.com/2015/07/an-open-source-ios-barrage-renderer/这是一个 iOS 上的开源弹幕渲染库.弹幕实质是多个精灵的时间上的渲染方式. PC/Web上已经有很成熟的解决方案了; Android上比较有名的是BiliBili开源的DanmakuFlameMaster, 但是开源社区尚没有比较好的转载 2016-04-07 13:37:30 · 4756 阅读 · 0 评论 -
iOS URL scheme 详解
iOS Launching Settings -> Restrictions URL Scheme.http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-schemeWARNING: This method will not work for devices ru转载 2016-04-07 15:13:34 · 7093 阅读 · 0 评论 -
iOS开发-自动布局之autoresizingMask使用详解(Storyboard&Code)
http://www.cnblogs.com/GarveyCalvin/p/4165151.html前言:现在已经不像以前那样只有一个尺寸,现在最少的IPHONE开发需要最少需要适配三个尺寸。因此以前我们可以使用硬坐标去设定各个控件的位置,但是现在的话已经不可以了,我们需要去做适配,也许你说可以使用两套UI或两套以上的UI,但那样不高效也不符合设计。IOS有两大自动布局利器:autores转载 2016-04-11 22:37:25 · 463 阅读 · 0 评论 -
iOS自动布局之Autoresizing
https://blog.cnbluebox.com/blog/2014/09/09/appkai-fa-zhe-xu-yao-wei-iphone6zuo-chu-gai-bian/对于IOS的app开发者来说,不会像Android开发者一样为很多的屏幕尺寸来做界面适配,因此硬编码的坐标也能工作良好,但是从设计模式上来说这不是好的做法。而且也还有一些问题,如iPhone5的适配,转载 2016-04-11 22:38:42 · 390 阅读 · 0 评论 -
iOS 启动页多语言
http://blog.youkuaiyun.com/hitwhylz/article/details/50883617iOS 启动页多语言个人网站: Colin’s Nest 转载请注明出处。 iOS开发交流群: 184226705. 欢迎加入~启动页适配多语言, 想必很多 App 都有类似的需求。但是之前尝试过程中, 发现 “多语言” 的那几种实现方转载 2016-03-26 15:05:52 · 732 阅读 · 0 评论 -
iOS 打开第三方 APP 配置 参数
iOS 打开第三方 APP 配置 参数https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.htmlSystem-Declared Uniform Type Identifi转载 2016-03-27 12:54:40 · 2153 阅读 · 0 评论 -
iOS UIDocumentInteractionController 第三方打开详解
//// ViewController.m// test_UIdocument_01//// Created by admin on 3/27/16.// Copyright © 2016 jeffasd. All rights reserved.//#import "ViewController.h"@interface ViewController ()@pro原创 2016-03-27 14:57:53 · 1853 阅读 · 0 评论 -
iOS Apple 官方文档 开始 地址
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.htmlAbout iOS App ArchitectureApps need to work with the iOS原创 2016-03-27 15:02:40 · 633 阅读 · 0 评论 -
通过UIDocumentInteractionController预览和分享"史蒂夫•乔布斯传"
原文链接:http://www.jianshu.com/p/3f03897cf98a前言朋友分享推荐给我一本PDF格式的史蒂夫•乔布斯传,阅读了几篇,很受感触,于是想把他分享给大家欣赏阅读。早起闲来无事,正好就接着写篇文章来分享一下!我在“iOS实现App之间的内容分享”这篇文章中详细讲解了通过注册UTI的方式让我们的App支持分享,也简单地说了一下App内部怎么处理分享。同时,我也指转载 2016-03-27 15:36:26 · 1723 阅读 · 0 评论 -
通过UIActivityViewController实现更多分享服务
原文链接:http://www.jianshu.com/p/a1c9621a3f4e前言我在通过UIDocumentInteractionController预览和分享"史蒂夫•乔布斯传"这篇文章中,详细讲了UIDocumentInteractionController的用途和使用方法。而在iOS 6 SDK中,苹果提供了UIActivityViewController来让我们可以使用转载 2016-03-27 15:37:35 · 1167 阅读 · 0 评论 -
iOS 使用系统API获取 字符串的 size
NSString *string1 =@"helloworld"; CGSize fontSize = [string1sizeWithAttributes:@{NSFontAttributeName : [UIFontsystemFontOfSize:15]}]; NSLog(@"the fontSize is %@",NSStringFromCG原创 2016-03-27 16:08:49 · 736 阅读 · 0 评论 -
iOS Xib文件详解
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/#//apple_ref/occ/instp/UIViewController/nibNameInherits FromNSObjectUIResponderUIView原创 2016-03-27 20:58:22 · 1466 阅读 · 0 评论 -
1个viewController怎么关联2个XIB,一个是iphone的XIB,一个是ipad的xib
https://segmentfault.com/q/10100000001285061个viewController怎么关联2个XIB,一个是iphone的XIB,一个是ipad的xibif ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {YourViewContro转载 2016-03-27 21:33:40 · 1150 阅读 · 0 评论 -
UIImage设置渲染模式
http://demo.netfoucs.com/quanqinyang/article/details/43939245在使用系统tabbar添加图片时,图片会模糊,修改图片大小也不行,后来找到了渲染这个概念,顺藤摸瓜就找到了imageWithRenderingMode这个方法。UIImage去掉渲染只能在IOS7或者以上的系统使用UIImage *img转载 2016-03-28 14:11:53 · 328 阅读 · 0 评论 -
CATransform3D 详解
- (void)viewDidLoad { [superviewDidLoad]; _imageView = [UIImageViewnew]; _imageView.frame =CGRectMake(100,100, 200,200); _imageView.image = [UIImageimageNamed:@"z原创 2016-03-28 15:40:55 · 747 阅读 · 0 评论 -
iOS UISearchBar和UISearchDisplayController
http://www.cnblogs.com/VincentXue/archive/2012/08/30/2664119.htmlUISearchBar继承自UIView、UIResponder、NSObject 属性: autocapitalizationType————自动对输入文本对象进行大小写设置(包含4种类型,但是有时候键盘会屏蔽此属性)转载 2016-04-26 23:11:43 · 459 阅读 · 0 评论 -
iOS UITabBarController tabbar 自定义 详解
UITabBarController的item间距能不能设置 UITabBarController的每个item不设title的话,那个title还是会占据着最下面那一行的位置,该怎么去隐藏它让那个位置空出来UITabBarController的item间距能不能设置,因为我发现只有3个item的时候都集中在中间那块,我想把它们的间距设置大一点原创 2016-03-29 11:24:26 · 2129 阅读 · 0 评论 -
详解Xcode 7的视图调试
http://www.cocoachina.com/ios/20150423/11658.html本文由远的风景翻译自raywenderlich,作者:Scott Berrevoets原文:View Debugging in Xcode 6开发者会经常遇到视图或者Auto Layout约束中存在bug的情况,并且这种bug很难通过代码发现,所以开发者很有必要熟知如何进行转载 2016-03-29 11:54:11 · 2195 阅读 · 0 评论 -
UITransitionView and UILayoutContainerView 详解
What is UITransitionView?What is UILayoutContainerView?Will I get in trouble for adding subviews to them?They are the superviews of a UITableView which is inside of a UINavigationController whic原创 2016-03-29 11:55:00 · 9608 阅读 · 1 评论 -
iOS UISearchBar 属性 设置详解
[self.view setBackgroundColor:[UIColor colorWithRed:239.0/255 green:239.0/255 blue:239.0/255 alpha:1.0f]]; MySearchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 65, wid原创 2016-04-26 23:13:27 · 2649 阅读 · 0 评论 -
iOS中UISearchBar(搜索框)使用总结
http://my.oschina.net/u/2340880/blog/509756iOS中UISearchBar(搜索框)使用总结初始化:UISearchBar继承于UIView,我们可以像创建View那样创建searchBar?12 UISearchBar * bar = [[UISea转载 2016-04-26 23:14:25 · 13154 阅读 · 0 评论 -
Xcode7如何使用autoresizing 属性
如果想使用AutoresizingMask属性需要将Xcode7中的autolayout和sizeclass全部关闭即可。然后选中xib中的某个空间 查看show the Size inspector 就能看到autoresizing了原创 2016-04-11 22:15:20 · 465 阅读 · 0 评论 -
iOS 视图的tag使用详解
iOS 的tag说明,看到有些使用tag,将tag的值设置为10000 这么大的值,我感觉可能是写这个值得怕这个tag已经被别的控件使用,因此设的大点,不过这样使用的可能是没有搞清楚tag的作用范围,tag的作用范围不是整个App的而是这个View及其SubView,苹果官方的解释是:object-c- ( a logicalPath='//apple_ref/doc/c_ref/__原创 2016-05-10 14:07:26 · 1425 阅读 · 0 评论 -
layoutSubviews 函数 在cell里面获取的宽度 不正确
layoutSubviews详解 今天在layoutSubviews函数里面 获取 cell 的frame 打印的宽度竟然是600,cell 是纯代码写的,当时就懵逼了,怎么回事,我没用autolayout呀,按照苹果官方文档里面说明的layoutSubViews里面获取的是真实的frame,难道文档有错误,我想应该不会,经过一番调试发现 原因为:我在ViewController 里面用了原创 2016-04-15 17:25:03 · 3462 阅读 · 0 评论 -
内存恶鬼drawRect - 谈画图功能的内存优化
http://blog.youkuaiyun.com/jijiji000111/article/details/50480405内存恶鬼drawRect - 谈画图功能的内存优化感谢原作者:http://mp.weixin.qq.com/s?__biz=MjM5NTIyNTUyMQ==&mid=447105405&idx=1&sn=054dc54289a98e8a39f2b9386f4f6转载 2016-05-10 22:09:17 · 1090 阅读 · 0 评论 -
iOS 7 之后字体设置新方法
//// VerticalAlign.m// test_ Input_01//// Created by admin on 4/22/16.// Copyright © 2016 jeffasd. All rights reserved.//#import "VerticalAlign.h"@implementation VerticalAlign- (void)a原创 2016-04-22 14:34:58 · 528 阅读 · 0 评论 -
看见的
大神们 我有个问题,当我的cell使用注册方法注册时如: [self.tableView registerClass:[DemoVC7Cell class] forCellReuseIdentifier:NSStringFromClass([DemoVC7Cell class])]; 我在cellForRowAtIndexPath方法代理里面 分别使用转载 2016-04-28 18:42:06 · 5228 阅读 · 0 评论 -
SDAutoLayout 自己理解
//这个函数是 将 indexPath对应的cache值放入字典中,字典的key为indexPath的值,key对应的object为一个数组,数组里面装的是cell内的所有子控件的frame//这样就将indexPath 对应的cell的所有子控件的frame都给保存了- (void)setSubviewFrameCache:(CGRect)rect WithIndexPath:(NSIn原创 2016-04-28 19:49:04 · 815 阅读 · 0 评论 -
iOS添加、删除通讯录 (清空通讯录)
http://www.henishuo.com/insert-delete-addressbook/?utm_source=tuicool&utm_medium=referral前言今天做到这个么小需求,需要添加N条手机号到通讯录,同样也要能清空通讯录。在完成后, 将这两段代码片段记录下来,供大家参考!添加到通讯录下面是添加到通讯录的一段代码片段,这里只是手机号转载 2016-05-11 09:36:45 · 2227 阅读 · 0 评论 -
iOS 全部清空通讯录
//// ViewController.m// test_delete_addressBook_01//// Created by admin on 16/5/11.// Copyright © 2016年 jeffasd. All rights reserved.//#import "ViewController.h"#import @interface View原创 2016-05-11 09:50:23 · 1806 阅读 · 0 评论