1.封装弹出框,包括设置弹出界面 设置弹出地点 弹出 消失等方法。大概封装如下
#import
@interface WBDropdownMenu : UIView
@property (nonatomic,strong) UIView *contentView;
@property (nonatomic,strong) UIViewController *cntController;...
分类:
移动开发 时间:
2015-05-17 21:52:09
阅读次数:
192
Android:仿QQ 发表说说/上传照片 弹出框...
分类:
移动开发 时间:
2015-05-15 12:10:15
阅读次数:
160
一、popup 弹出框 在onCreate中创建时异常Unable to add window -- token null is not valid; is your activity running?错误及其修改方法popup 弹出框是要依赖于一个父窗口或者父 View,这个错误的根本原因是说父窗...
分类:
移动开发 时间:
2015-05-15 01:10:30
阅读次数:
123
技术点:dialog;ProgressBar;animated-rotate;弹出框:import com.carspeak.client.R;import android.app.Dialog;import android.content.Context;import android.graphi...
分类:
移动开发 时间:
2015-05-14 16:10:03
阅读次数:
146
自适应弹出框
.box-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
opacity: 0.5;
filter: alpha(opacity=50);
z-index: 99;
display: none;
}
.box {
position: ab...
分类:
其他好文 时间:
2015-05-12 18:54:25
阅读次数:
115
UIAlertView 继承于UIView初始化方法:- (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id /* */)delegate cancelButtonTitle:(NSString *...
分类:
其他好文 时间:
2015-05-09 23:30:09
阅读次数:
123
仿微信右上角弹出框
1、利用popwindow实现
2、popwindow的位置居于右上角
新建,弹出popwindow:
/** 弹popwindow **/
tv = (TextView) findViewById(R.id.textView1);
view_pop = LayoutInflater.from(MainActivity.this).inflate(...
分类:
微信 时间:
2015-05-07 22:12:41
阅读次数:
741
模态框在任何一个系统的布局里面都是很重要的东西。其实个人觉得直接一个alert()更好,但现在很多人觉得alert()的弹出框太不给力。同时alert()里面也不宜放置太多文本。如果需要做注册的“服务协议”等本页面内弹出窗口,此时可以考虑使用到Ratchet的模态框。
效果如下:
Ratchet的模态框仅能通过...
分类:
其他好文 时间:
2015-05-06 17:52:19
阅读次数:
148
模态对话框,标签切换,Tooltio,弹出框,提示信息,按钮组,折叠,幻灯片1.模态对话框 触发按钮+对话框 点击触发模态对话框 //data-toggle="modal" 触发器 //data-...
分类:
编程语言 时间:
2015-05-06 06:53:37
阅读次数:
176