- 浏览: 340048 次
- 性别:
- 来自: 武汉
最新评论
-
leslie89757:
[img][img][img][img][img][img][ ...
CocoaPods 安装使用 -
hanmeizhi:
very useful to me. Thanks
Dismissing MPMoviePlayerViewController the right way -
luzj:
这个考虑不周全, 在iOS5的键盘高度就不是这个值了,这样写死 ...
UITextView: move view when keyboard appears -
xjg19870111:
不错。
objective-c NSString 常用操作 -
juedui0769:
现在已经不行了!
android源码下载
文章列表
解决上述问题的方法是 打开 .xcodeproj文件(反键-显示包内容),打开project.pbxproj文件,找到 LIBRARY_SEARCH_PATHS 项, 删除该项即可!
maxos下启动sqlite数据库直接启动终端输入sqlite3即可
1. 创建数据库、表的语句:
to create a new SQLite database named "ex1" with a single table named "tbl1", you might do this:
$ sqlite3 ex1
SQLite version 3.6.11
Enter ".help" for instructions
Enter SQL statements terminated with a ";" ...
这个问题折腾了我几天。。这就是初学要付出的代价吧。。。我的需求很简单,就是在不同的页面间传递值,a页面跳转到b页面,b页面作出选择后需要把值传递给a,开始用delegate,瞎折腾了一气没有成功,后来了解到可以通过NSNotification传值,测试后成功,非常好用,具体代码如下:
先在b页面合适的位置定义一个notification,然后发送notification:
NSNotification* notification = [NSNotification notificationWithName:@"MyNotification" object:self];
...
ComboBox for Grid (combo having local store)
Many people have been having confusion over how to handle rendering of combo boxes having a separate valueField and displayField. This is how we have been using in our applications:
Ext.ns("Ext.ux.renderer");
Ext.ux.renderer.ComboRenderer = ...
UIAlertView *someError = [[UIAlertView alloc]
initWithTitle:@"Something wrong!"
message:@"Your iPhone is broken!"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[someError show];
[someError release];
IOS 3.0以后,navigation controller自带toolbar, 原文如下:“In iOS 3.0 and later, a navigation interface can display a toolbar and populate it with items provided by the currently visible view controller. The toolbar itself is managed by the navigation controller object.”
显示toolbar以及toolbar基本的设置代码如下:
[self.nav ...
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"Hello World";
}
[self.navigationController pushViewController:self.targetViewController animated:YES];
Comment: The navigationController object is a stack that contains viewControllers. The view at the top of the stack is the one that gets rendered. So all we are doing is pushing a viewController onto this stack. T ...
1. 下载Msysgit, msysgit是Google为Windows环境下开发的Git客户端程序
http://code.google.com/p/msysgit/
2. 安装Msysgit软件,一路next,在此略过...
3. 新建一个目录,用于存放待会下载的源码,其实跟svn差不多
4. 右键点击刚才新建的文件夹,选择 “Git Bash”,会有一个类似windows command line 框弹出
5. 查询需要的源码,具体网址如下(这个可以收藏,^^):
http://android.git.kernel.org/
6. 下载具体的源码,比如我想要 Contacts 部分,就在刚 ...
1. 在res/drawable/目录下新建 mygradient.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<gradient
android:startColor="#282828"
androi ...