Iphone
文章平均质量分 59
lvchengfei
这个作者很懒,什么都没留下…
展开
-
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 · 585 阅读 · 0 评论 -
UIActionsheet UIAlertView
<br />UIActionsheet 操作表,用于迫使用户在多个选项之间进行选择。从屏幕底部弹出,显示一定的按钮给用户选择,只有单击一个按钮后才能继续进行。可以给操作表 设置 delegate,用于处理用户按下按钮后的操作,根据传进来的UIActionSheet对象确定按了哪个按钮。可以将delegate设为自己,self,那么需要在类中实现 -(void)actionsheet:(uiactionsheet*)actionssheet diddismisswithButtonIndex:(NSinteg原创 2011-04-21 20:13:00 · 437 阅读 · 1 评论 -
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 · 146 阅读 · 0 评论 -
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 · 922 阅读 · 0 评论 -
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 · 446 阅读 · 0 评论 -
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 · 649 阅读 · 0 评论 -
NSURLRequest
<br />http://www.cnblogs.com/KidReborn/archive/2010/10/18/1854230.html原创 2011-04-23 15:39:00 · 285 阅读 · 0 评论 -
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 · 3486 阅读 · 0 评论 -
[转]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 · 3668 阅读 · 0 评论 -
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 · 650 阅读 · 0 评论 -
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 · 1424 阅读 · 0 评论 -
[转]iPhone开发指南-应用程序核心
<br />http://soft-app.iteye.com/blog/927325<br /> <br />iPhone开发指南-应用程序核心<br />应用程序内核<br />每个iPhone应用程序都基于UIKit框架而构建,因此拥有同样的核心架构。UIKit提供运行应用程序的关键对象并且协调用户输入处理和屏幕内容显示。应用程序彼此之间区分开来的地方在于如何配置这些缺省对象和它们如何把自定义对象整合到它们的应用程序用户界面和行为中。<br />尽管定制你的应用程序用户界面和基本行为发生在你的自定义代原创 2011-04-21 11:54:00 · 403 阅读 · 0 评论 -
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 · 506 阅读 · 0 评论 -
各种枚举
<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 · 209 阅读 · 0 评论 -
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 · 802 阅读 · 0 评论 -
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 · 682 阅读 · 0 评论 -
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 · 1428 阅读 · 0 评论 -
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 · 568 阅读 · 0 评论 -
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 · 1575 阅读 · 0 评论 -
用了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 · 823 阅读 · 0 评论 -
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 · 574 阅读 · 0 评论 -
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 · 239 阅读 · 0 评论 -
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 · 380 阅读 · 0 评论 -
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 · 289 阅读 · 0 评论