[翻译] SlideInView

简介:

SlideInView

This is a quick and lightweight example of how to present a notification like view from the bottom of a view. Using SlideInView, the code you'd need would look something like this:

这是一个快速、轻量级的示例工程,用来展示一个通知信息,从这个view的底部。如果要使用SlideInView,你只需要写下面几行代码就行了:

UIView *notificationView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 100)];
notificationView.backgroundColor = [UIColor colorWithRed:5/255.0 green:61/255.0 blue:98/255.0 alpha:1];

SlidingViewManager *svm = [[SlidingViewManager alloc] initWithInnerView:notificationView containerView:self.view];

[svm slideViewIn];

The different approach taken here is to animate any view, without making assumption about whether it is a Warning or Failure message like many other libraries do.

不同的地方在于,这个可以用于任何view的动画,而不仅仅区分于警告信息、失败信息等等固定的view。

Included are simple demos, most of which emulate the style you'd see in ALAlertBanner.

这里包含了一个示例的demo,你可以看到所有他能做到的事情。

Currently all included in the same video.

项目中包含了如下的一些效果。

  1. View with Button 有Button的view
  2. ALAlertBannerStyleSuccess Success样式的view
  3. ALAlertBannerStyleFailure Failure样式的view
  4. ALAlertBannerStyleWarning Warning样式的view
  5. ALAlertBannerStyleNotify Notify样式的view
  6. Stacking Views 栈模式的view

 

目录
相关文章
|
iOS开发
|
NoSQL Redis 数据库
阅读Nosql代码有感
      这一年总得来说,读书的时间不多。一是因为时间啥关系,这一年一直在跟着项目走,或者被项目牵着走,几乎所有的时间和精力全部被拴在几个项目上;不过所幸今年创业失败,又回去上班了,时间相对空余了一些。 <p>      双十一是一个好日子,持续关注的几本书,几乎五折入手,其中有一本叫做《mysql技术内幕-innodb存储引擎》。工作闲暇之余经常拿出来翻翻,所幸自己对于线程和数据结构
1537 0
|
NoSQL 关系型数据库 MySQL
从游戏开发到应用开发的转变
<p><span style="white-space:pre"></span>从2011年大学毕业到2014年年底,这段时间我的软件开发生涯是在游戏圈子里渡过的,虽然终究并没有做出什么名堂来,但是至少也是混到了服务器主程的位置;游戏开发的那些日子,大概也是进步最快的日子,回忆起来自己的博客里面比较有质量的文章都是那段时间写的,尤其是面对上线和大并发的时候,对于软件和代码的理解有了不同于刚
1559 0
读书学习之道
<p><img src="http://img.blog.csdn.net/20151217125219434" alt=""><img src="http://img.blog.csdn.net/20151217125242339" alt=""><img src="http://img.blog.csdn.net/20151217125310444" alt=""><img src="
1192 0
|
存储 机器学习/深度学习 算法
【C/C++学院】0828-STL入门与简介/STL容器概念/容器迭代器仿函数算法STL概念例子/栈队列双端队列优先队列/数据结构堆的概念/红黑树容器
<p></p> <h2> <span style="font-family:宋体; font-size:16pt">STL<span style="font-family:宋体">入门与简介</span></span><span style="font-family:宋体; font-size:16pt"></span> </h2> <pre name="code" class="ja
2092 0
|
C++
C/C++项目实战--屏幕截图
<p>模仿腾讯QQ截图功能:</p> <p><br></p> <p></p> <pre code_snippet_id="1591644" snippet_file_name="blog_20160229_1_8544161" name="code" class="cpp">// ScreenCapture.cpp : 定义应用程序的入口点。 // #include "stdafx
4459 0
哲思
<div> <span style="font-family:'YaHei Consolas Hybrid'; font-size:14px"></span> <div> <span style="font-family:'YaHei Consolas Hybrid'; font-size:14px">哲学,是我原来向往但没有好好去学的学科。向往,因为听人说,哲学使人聪明。没有去好好学,
1647 0
|
Oracle 关系型数据库 Linux
RedHat As 5.5 安装 Oracle 10g数据库
一、安装环境 System : RedHat As 5.5 Oracle Version : Oracle 10g
1777 0