自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(56)
  • 资源 (6)
  • 收藏
  • 关注

原创 sed【一】

sed是流编辑器,简单的说就是对输入只进行一次扫描,执行相应的操作,然后输出。通常是以行为单位,读入一行,处理操作,输出一行,输入可以是文件或管道,默认输出为标准输出。因此又可以称 "行编辑器“比较适合用于需要重复处理的编辑任务,比如替换操作。当前处理的行被缓存在 par

2011-10-17 17:18:31 253

转载 FTP命令详解

from:http://www.cnblogs.com/mac_arthur/archive/2010/07/16/1778966.htmlFTP命令是Internet用户使用最频繁的命令之一,不论是在DOS还是UNIX操作系统下使用FTP,都会遇到大量的FTP内部命

2011-10-11 11:15:56 329

原创 Frameworks and Weak Linking

<br />在一个高版本的sdk中引入了一个新的fecture,然后你需要使用这个fecture,但是为了在低版本中运行时防止出现 crash情况。可以设置weak link,保持兼容性的问题。<br />http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html<br /> <br /> <br />-weak_framework Message

2011-05-23 12:56:00 301

原创 navigation button样式

<br /> <br />    //right button 使用系统的button<br /> <br />    UIBarButtonItem *tmpRightButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(rightRecommendButton)] ;<br />    self.navigation

2011-05-20 14:03:00 652

原创 用了UINavigationController后,UITableView reloadData或viewWillAppear失效

<br />http://nice.iteye.com/blog/855648<br />- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {           [self.myTableView reloadData];   }<br />当

2011-05-20 14:01:00 879

原创 CFDictionaryGetValue remark

<br /><br />这样写 会crash,莫名奇妙<br />                //NSString* homeAddress = [[NSString alloc ]stringWithFormat:@"%@,%@,%@" ,CFDictionaryGetValue(dict, kABPersonAddressStreetKey) , CFDictionaryGetValue(dict, kABPersonAddressCityKey),CFDictionaryGetValue(dict

2011-05-19 14:24:00 1663

原创 iphone contact operation

<br /><br />    //begain lv<br /> <br />    for (id *people in peopleArray)<br />    {<br />        // fixed by Wang Yandong<br />NSString *firstName = (NSString *)ABRecordCopyValue((ABRecordRef)people, kABPersonFirstNameProperty);<br />NSString *lastName

2011-05-17 17:45:00 641

原创 Address Book Programming Guide for iOS

http://developer.apple.com/library/ios/#documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/Introduction.htmlThe Address Book technology for iOS provides a way to store people’s contact information and other personal information in a

2011-05-16 20:45:00 1482

原创 Building a SearchView with UISearchBar and UITableView

<br />http://jduff.github.com/2010/03/01/building-a-searchview-with-uisearchbar-and-uitableview/<br /> <br />Fading out the UITableView<br />If you take another look at the Flixster App or even the initial screenshot I have in this post you will notice tha

2011-05-14 14:10:00 736

原创 Building a SearchView with UISearchBar and UITableView

<br />http://jduff.github.com/2010/03/01/building-a-searchview-with-uisearchbar-and-uitableview/<br /> <br />Fading out the UITableView<br />If you take another look at the Flixster App or even the initial screenshot I have in this post you will notice tha

2011-05-14 14:09:00 857

原创 Single UITableViewCell without Border?

<br />question:<br />Hello everybody,<br /><br />I've been finding for few hours now... with no success.<br /><br />Is there any way to have a SINGLE UITableViewCell with no borders at all?.<br />I've seen a UITableView property, separatorColor... which yo

2011-05-13 14:08:00 676

原创 各种枚举

<br />更多见  http://www.cnblogs.com/chenjunbiao/#import <Foundation/Foundation.h>#import "Photo.h" int main (int argc, const char * argv[]){     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];     NSDictionary *dict = [NSDictionary dictionaryWit

2011-05-11 18:27:00 269

原创 frame&&bounds

-(CGRect)frame{    return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height);}-(CGRect)bounds{    return CGRectMake(0,0,self.frame.size.width,self.frame.size.height);}

2011-05-08 13:57:00 641

转载 UIPickerView – Creating a simple picker view

<br />http://www.iphonesdkarticles.com/2009/01/uipickerview-creating-simple-picker.html<br /> <br />

2011-05-07 16:21:00 347

原创 Add UIPickerView & a Button in Action sheet - How? or How to add a UITableView to a UIPickerView on the same view

我想实现的效果:在 uitableview的中的某一行选中后,弹出pickerview,进行选择,当点击其他行时退出。注意 uitableview的某一行 不一定是最后一行,所以不能简单的 将uitableview加到mainview后,将pickerview也加到mianview,只要控制位置。我的想法:因为有可能在中间一行,所以我想将pickerview 加到uitableview的某一行,并且要设置这个一行的高度,并且根据是否需要显示pickerview动态显示这一行。后来搜到以下资料,好像可以实现类

2011-05-07 15:32:00 1489

原创 iphone app send email

<br />http://stackoverflow.com/questions/1494626/iphone-app-send-emailhttp://stackoverflow.com/questions/1079409/creating-an-mailto-url-with-a-url-in-the-body-iphone-sdk-(IBAction)showPicker:(id)sender {<br />// This sample can run on devices running iPhon

2011-05-05 20:23:00 699

原创 [转]IOS程序内发短信

http://www.cocoachina.com/bbs/read.php?tid-43358-keyword-iphone%7C%B6%CC%D0%C5.htmlhttp://archive.cnblogs.com/a/1956619/OS4.0新加入了MFMessageComposeViewController和MFMessageComposeViewControllerDelegate,提供了发送短信的接口,可以像发送邮件那样不用跳出程序来发送短信. 介绍可参阅Message UIFramework

2011-05-04 16:11:00 3743

原创 NSURLConnection in separator thread

<br />http://www.wim.me/nsurlconnection-in-its-own-thread/<br /> <br /><br />I am currently working on perfecting my new AppReviews application. It sure coming along nicely but I ran into some trouble.<br />Because I am pulling a lot of data from the web,

2011-04-25 10:52:00 507

原创 NSURLConnection

<br />NSURLRequest提供一种快捷的方式来下载url对应的内容,提供了创建、取消接口。并且支持delegate的一系列回调方法,用于控制链接的各个方面。这些方法分为五类:URL loading, cache management, authentication and credentials, cookie storage, and protocol support.<br /> <br />使用NSURLRequest建立url请求,需要提供delegate中最起码的以下几个方法 conne

2011-04-24 16:47:00 3560

原创 NSURLRequest

<br />http://www.cnblogs.com/KidReborn/archive/2010/10/18/1854230.html

2011-04-23 15:39:00 344

原创 NSString 读写文件

NSString *fp=[[NSBundle mainBundle] pathForResource:@"contacts" ofType:@"gram"];NSString *gramString = [[NSString alloc] initWithContentsOfFile:fp  encoding:NSUTF8StringEncoding  error:&error];

2011-04-22 17:33:00 706

原创 UIActionsheet UIAlertView

<br />UIActionsheet 操作表,用于迫使用户在多个选项之间进行选择。从屏幕底部弹出,显示一定的按钮给用户选择,只有单击一个按钮后才能继续进行。可以给操作表 设置 delegate,用于处理用户按下按钮后的操作,根据传进来的UIActionSheet对象确定按了哪个按钮。可以将delegate设为自己,self,那么需要在类中实现 -(void)actionsheet:(uiactionsheet*)actionssheet diddismisswithButtonIndex:(NSinteg

2011-04-21 20:13:00 501 1

原创 iphone UITableViewCell height

<br />由于iphone 3的分辨率是320*480像素,而iphone4是480*960像素。因此如果想设置UITableView 中的UITableViewCell的自定义高度时,通过heightForRowAtIndexPath 直接返回像素,那么iphone3和iphone4分辨率的关系,他们的效果也将不一样。<br /><br /> <br /> <br />- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPat

2011-04-21 14:18:00 978

原创 [转]iPhone开发指南-应用程序核心

<br />http://soft-app.iteye.com/blog/927325<br /> <br />iPhone开发指南-应用程序核心<br />应用程序内核<br />每个iPhone应用程序都基于UIKit框架而构建,因此拥有同样的核心架构。UIKit提供运行应用程序的关键对象并且协调用户输入处理和屏幕内容显示。应用程序彼此之间区分开来的地方在于如何配置这些缺省对象和它们如何把自定义对象整合到它们的应用程序用户界面和行为中。<br />尽管定制你的应用程序用户界面和基本行为发生在你的自定义代

2011-04-21 11:54:00 465

原创 iphone cell Edge

http://www.tuaw.com/2010/01/07/iphone-devsugar-simple-table-badges/http://www.iphonedevsdk.com/forum/iphone-sdk-development/16092-uitableviewcell-badges.html

2011-04-19 18:32:00 191

原创 vmware+mac+使用细节问题

win7 系统,安装vmware7,安装mac 10.6.31. mac中的快捷键1、苹果键--Windows键2、Dock--F93、注销--Windows+Shift+Q4、保存--Windows+s2.mac 安装xcode问题安装xcode 提示mac需要升级到10.6.6,升级过程如下:点击屏幕左上角苹果标记 software update,升级软件即可。3.安装完xcode,创建快捷方式安装xcode后,从/Development/Application目录下启动xcode,注意是打开了Find

2011-04-13 14:47:00 555

原创 Win7+VMware+Mac 环境搭建

<br />具体过程如下链接所示。<br />http://www.iteeyan.com/2010/09/step-by-step-install-snow-leopard-on-vmware/<br />http://davidzhang2004.blog.51cto.com/494592/479035<br />碰到的问题,主要是由于原来参考如下链接做的<br />http://www.cnblogs.com/yjmyzz/archive/2010/11/10/1873324.html<br />所以

2011-04-12 19:03:00 437

原创 设置类似表格效果的几种方法

<br />Symbian中没有好用的类似excel效果的表格控件。搜索一番没有发现例子或者有用的东西,虽然很多商业软件上都有这样的效果,唯一可以确定的就是自己画,麻烦。<br />1.首先想到稍微有点类似的就是Grid,但由于其每行中的若干列是独立的,在设置焦点时比较麻烦,故最后也放弃了通过修改Grid实现这样的效果。<br />2.其次想到的是列表框listbox,其每行是独立,焦点转换简单,但需要自己在每行中设置  各列,并绘制对应网格线。<br />3.最后想到的是自己完全从头开始画,什么都靠自己的

2011-01-27 10:36:00 351

原创 scroll bar

<br />滚动条作为一个基本的控件,作为GUI应用程序来说是必不可少的。很可惜,symbian的残废设计,很多系统控件只支持 垂直方向的滚动条,而水平方向的滚动条是 不支持的。比如:listbox 。<br /> <br />iListBox->CreateScrollBarFrameL(ETrue) ;<br />iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn , CEikScrollBarFrame

2011-01-26 16:00:00 331

原创 静态&动态form pop item

静态在form的资源DLG_LINE中添加EAknCtPopupFieldText实现弹出 选项。选项的内容由r_lv_list_popup_items 中静态指定,创建form对话框时直接从资源创建。1.RESOURCE DIALOG r_lv_dialog{flags =EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |EEikDialogFlagCbaButtons ;//EEikDialogFlagWait |EEikDialogFlag

2011-01-24 17:07:00 244

转载 form and poptext

http://wiki.forum.nokia.com/index.php/Tips_of_CAknForm1.动态更新弹出列表CAknForm上使用的弹出控件是CAknPopupFieldText,但它只提供了查询列表项的方法(const MDesCArray* MdcArray() const;),由于是常量对象,所以不能修改其中的内容。另外还有一个设置列表项的方法SetQueryValueL(MAknQueryValue* aValue)被置为私有方法,同样不能使用。通过查看它的基类CAknPopup

2011-01-24 16:51:00 228

转载 from

<br />http://www.forum.nokia.com/document/Cpp_Developers_Library/GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6/html/Form_API4.html<br /> <br /> <br />Form API: Using Form APIForm API: Using Form APIDefining the form resourceSingle-page formMulti-page formLaunc

2011-01-24 16:21:00 286

原创 Fonts

<br /> »Symbian OS v9.1 »Symbian OS guide »Graphics »Using Graphics Device Interface » Using Fonts<br /> <br />Using FontsIntroduction to FontsThe Font classesCharacter metricsCharacter ascent, descent, height and baselineCharacter width, move and

2011-01-24 15:11:00 245

原创 自定义控件

<br />自定义控件: 定义(一)自定义控件: 从资源构造(二) 从资源创建控件自定义控件: 容器控件(三) 创建容器控件自定义控件: 聚焦(四) 处理摁键事件和改变活动自定义控件焦点自定义控件: 滚动条(五) 给自定义控件添加滚动条自定义控件: 在Dialog中(六) 把自定义控件加到CAknDialog<br />http://wiki.forum.nokia.com/index.php/%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8E%A7%E4%BB%B6%EF%BC%9A_%E

2011-01-13 17:15:00 385

原创 全屏的应用程序

<br /> <br />1.container 中 用SetExtentToWholeScreen();<br /> <br /> <br />CreateWindowL(); SetRect( aRect );SetExtentToWholeScreen(); ctivateL(); <br />2.在view的DoActivateL中,创建container实例iContainer, <br />然后调用iContainer-> ConstructL(AppUi()-> Applic

2011-01-13 17:12:00 429

转载 列表框(多选框,可标记多选)

http://library.forum.nokia.com/index.jsp?topic=/S60_3rd_Edition_Cpp_Developers_Library/GUID-E3DA1ADE-3380-44D3-ACD0-91B0C8626AAD.htmlCreating a multiselection listboxIn a multiselection list, diff

2010-03-24 20:39:00 564

原创 程序间传递参数

http://discussion.forum.nokia.com/forum/showthread.php?p=715414#post715414http://discussion.forum.nokia.com/forum/showthread.php?t=149693 1.在应用程序A中,如何创建应用程序或者控制台程序 B,见http://wiki.forum.nokia.c

2010-03-17 15:50:00 378

原创 CAknWaitNoteWrapper 和MAknBackgroundProcess 配合

如果想在工程中加个进度条,一搜你就会搜到CAknWaitDialog,CAknProgressDialog.其实,CAknWaitDialog是等待通知对话框,外观上看就是进度条始终是满,它一直等待某事件完成.这中间也可以按cancel结束等待.具体如何使用,一搜一大把,很多是拷贝,这里说的稍微不同的.等待对话框的使用步骤:1.在资源文件中定义等待通知,方式和自定义通知类型RESO

2010-01-26 15:37:00 883

原创 使用 CEikEdwin

1.在*AppView.h文件中 *AppView类 加入  CEikEdwin*     iEikEdwin; // edit control to display the resultpublic: // New methods    void SetTextL( const TDesC& aText );private: TInt CountComponentContro

2010-01-03 13:43:00 854 2

转载 手机接入点 CMWAP 和CMNET

 接入点 ,手机上网方式,有CMWAP和CMNET 。 用手机上网已经有好长一段时间了,每次在和朋友交流经验时,总会发现很多朋友对 CMWAP 和 CMNET 的区别还是不甚了解。对于一些新软件,经常有人会问 “CMWAP 可以用吗? ” ,所以笔者撰写了此文,希望本文能为大家解开这个疑惑。     问题 1 .为什么会有两个接入点?     在网上查阅大量资料后并经过反复的尝试与探索后,笔者对

2009-12-31 11:30:00 673

sed中文手册

sed中文手册,暂时放在这里吧,不会丢失

2011-10-17

Symbian_OS_Basics_Workbook_v3_1_en.pdf

Symbian OS Basics Workbook

2010-01-05

Objective-C基础教程.

Objective-C基础教程. 影印版,有点斜,不过看看还是可以的

2011-09-30

(En)UNIX Shell 范例精解(第4版).chm

(En)UNIX Shell 范例精解(第4版)

2009-02-23

Symbian_OS_Basics_Lab_Exercises_v3_1_en

Symbian_OS_Basics_Workbook_v3_1_en.pdf 这本书中的对应的例子源码。

2010-01-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除