码迷,mamicode.com
首页 >  
搜索关键字:action bar    ( 21555个结果
addTarget:(id) action:(SEL) forControlEvents:(UIControlEvents)的解释
上图是程序运行的过程图,程序有一个主循环,一直不断的去检查是否有监听的事件到达,addTarget:(id) action:(SEL) forControlEvents:(UIControlEvents是把用户点击按钮的监听注册到运行循环中,当运行循环检测到用户点击按钮事件,就去调用id的sel方法...
分类:其他好文   时间:2014-05-26 12:19:13    阅读次数:220
Intent启动照片或者相机
1、Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); intent.putExtra("crop", true); in...
分类:其他好文   时间:2014-05-26 12:00:15    阅读次数:230
Struts1.2 struts-config.xml配置详解
Struts1.2 struts-config.xml配置详解【Struts1.2总结系列】struts-config.xml配置struts-config.xml是Struts的主要配置文件,在该文件中,可以配置数据源、form-bean、action和plug-in(插件)和资源文件的信息。其文...
分类:其他好文   时间:2014-05-26 11:46:54    阅读次数:321
MVC扩展ActionInvoker,自定义ActionInvoker,根据请求数据返回不同视图
ActionInvoker的作用是:根据请求数据(HttpPost,HttpGet等)和action名称,来激发响应的action,再由action渲染视图。本文通过自定义ActionInvoker,根据请求类型直接渲染视图。控制器中有这样的一个Action: public ActionResult...
分类:Web程序   时间:2014-05-26 08:40:02    阅读次数:323
iOS Search bar 输入空字符串也可以搜索
Search bar delegate- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar{ UITextField *searchBarTextField = nil; for (UIView *mainview i...
分类:移动开发   时间:2014-05-26 07:25:46    阅读次数:310
.net mvc 一个Action的 HttpGet 和 HttpPost
本文转自:http://stackoverflow.com/questions/11767911/mvc-httppost-httpget-for-actionController:[HttpGet]public ActionResult MyMethod(){ return MyMethod...
分类:Web程序   时间:2014-05-26 07:11:19    阅读次数:299
ios成长之每日一遍(day 7)
今天到UITabBarController 结合 UIPickView, 这里一共有5个实现, 由浅到易。其实在IB上面使用UITabBarController很简单, 就像平常拖控件一样拖到界面上面, 然后把Tab Bar Item拉到UITabBarController就可以增加底下的tab, ...
分类:移动开发   时间:2014-05-26 07:04:17    阅读次数:375
Linux,unix,cygwin,centeros下的tar压缩解压缩命令详解
tar Examples:   tar -cf archive.tar foo bar  # Create archive.tar from files foo and bar.   tar -tvf archive.tar         # List all files in archive.tar verbosely.   tar -xf archive.tar         ...
分类:Windows程序   时间:2014-05-26 03:43:53    阅读次数:556
struts2国际化全例 错误解决
在struts2中需要做国际化的有: jsp页面的国际化,action错误信息的国际化,转换错误信息的国际化,校验错误信息的国际化 在之前的例子中已经做过和国际化相关的例子了,在struts.xml中配置过   view plaincopy to clipboardprint? constant name="struts.custom....
分类:其他好文   时间:2014-05-24 19:14:09    阅读次数:339
Spring+Struts 2 简单实例报空指针异常
空指针出现于Action注入位置。。如果一般错误请检查配置文件。我出的错误。在于拷贝了之前做的实例中的lib文件夹到这个工程中。其中有个包为struts2-convention-plugin-2.3.16.3.jar造成了包识别异常。出现空指针。有类似经历的可以查看,也给大家提个醒。不要一气呵成的导入所..
分类:编程语言   时间:2014-05-24 15:15:08    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!