上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 首先实现UIScrollViewDelegate协议:#import <UIKit/UIKit.h> @interface Activity01ViewController : UIViewController<UIScrollViewDelegate>{ UIScrollView *myscrollview; } @property (nonatomic,retain) UIScrollView *myscrollview; @end实现协议的下列方法:#import <UIKit/UIKit.h> @interface Activity01ViewCon 阅读全文
posted @ 2012-08-28 15:44 志强思密达 阅读(161) 评论(0) 推荐(1) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/white" > <Line 阅读全文
posted @ 2012-08-24 14:28 志强思密达 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 添加数据源, 由三个函数来回答数据绑定的请求:numberOfSectionsInTableView, numberOfRowsInSection 和 cellForRowAtIndexPath.用numberOfSectionsInTableView方法来返回table中有几个组.- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return 1;}用numberOfRowsInSection方法来返回每个组里有几行- (NSInteger)tableView:(UITableView *)tableView 阅读全文
posted @ 2012-08-07 16:54 志强思密达 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 前提:配置到某具体的工程项目中复制TouchJSON框架源代码到自己的工程项目中,即将TouchJSON/Source目录及文件拷贝到项目中,在添加到工程项目中时确认选中“Copy items into destination groups folder(if needed)”项。转换JSON数据到对象——即解析,反序列化操作首先引入文件:#import "CJSONDeserializer.h"到项目具体源文件中。然后就可以将一个含有JSON数据的NSData对象进行转换成一个对象。NSData *theJSONData = /* 这里是一些JSON数据 */NSErro 阅读全文
posted @ 2012-08-07 10:22 志强思密达 阅读(215) 评论(0) 推荐(0) 编辑
摘要: NSMutableString 是NSString 的子类,NSMutableString有很多方法,下面是总结的几种常用的方法:stringWithString:,类级构造方法创建NSString对象;insertString:,插入字符串,不会创建新的对象;appendString:,追加字符串,不会创建新的对象;deleteCharactersInRange:,在一个范围内删除字符串,不会创建新的对象;replaceCharactersInRange: withString:,替换字符串,不会创建新的对象。#import <Foundation/Foundation.h> i 阅读全文
posted @ 2012-08-06 15:43 志强思密达 阅读(199) 评论(0) 推荐(0) 编辑
摘要: NSMutableDictionary中只能放入对象,不能放入基本类型,这一点请参考java的Map系列。。。 然则NSInteger。。不是对象。。。。NSNumber才是,所以应该这样放的:NSInteger aInteger; NSMutableDictionary *dic=[[NSMutableDictionary alloc initWithCapacity:10]; [dic setObject:[NSNumber numberWithInteger:aInteger]forKey:@"TheKey"]; 阅读全文
posted @ 2012-08-04 11:44 志强思密达 阅读(91) 评论(0) 推荐(0) 编辑
摘要: vi/vim 基本使用方法本文介绍了vi (vim)的基本使用方法,但对于普通用户来说基本上够了!vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里只是简单地介绍一下它的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的,因此您可以在其他任何介绍vi的地方进一步了解它。Vi也是Linux中最基本的文本编辑器,学会它后,您将在Linux的世界里畅行无阻。1、vi的基本概念 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mo. 阅读全文
posted @ 2012-07-28 11:34 志强思密达 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Xcode只有破解后才能免费真机调试,否则需要注册苹果的开发者计划,需要99美元一年,除非发布程序到苹果商店,否则可以先不注册,破解到真机调试。真机为越狱后的ios设备,比如ipod,iPhone,iPad。我的iPod版本是4.3.3,Xcode版本是3.2.6,mac版本是10.6.8。第一步:创建证书 打开应用程序->实用工具->钥匙串访问.打开菜单:钥匙串访问->证书助理->创建证书。在打开的对话框中,名称输入:iPhone Developer,选中让我覆盖这些默认值。然后继续,再继续,然后输入你的email,名称还是iPhone Developer。然后继续, 阅读全文
posted @ 2012-07-28 11:27 志强思密达 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1、添加 framework:将 SystemConfiguration.framework 添加进工程。2、下载 http://download.csdn.net/detail/svrsimon/4458137复制里面的 Reachability.h 和 Reachability.m 到项目中3、调用的代码:-(NSString*) GetCurrntNet{ NSString* result; Reachability *r = [Reachability reachabilityWithHostName:@"www.apple.com"]; switch ([r cu 阅读全文
posted @ 2012-07-27 14:42 志强思密达 阅读(202) 评论(0) 推荐(0) 编辑
摘要: @implementation AlertViewTestViewController /* Tasks Creating Alert Views – initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles: Setting Properties delegate property title property message property visible property Configuring But... 阅读全文
posted @ 2012-07-18 16:34 志强思密达 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页