看到一篇关于UIWebView 使用教程的文章,主要是细节方面的经验之谈,写的很不错,分享过来;原文见:7 tips for using UIWebView 

    For an IPhone app I have been building, I decided to use the UIWebView to render SVG files, instead of doing the vector rendering myself. I needed to have a way to read-in files generated from a vector authoring tool (Illustrator etc.) and after initially looking for an open-source SVG parsing/rendering engine of some sort, I decided on hosting the UIWebView itself instead and use the SVG rendering capability of WebKit. Another option could have been to read in PDF files as PDF is the default meta-file format for Quartz, but I needed programmatic access to each path drawn in the file and it was not apparent to me how I can do that once the PDF is rendered. (Any ideas on that is still welcome of course)
    ...

    查看...

    Tags: cocoa  object-c  view  web  实例  代码  UIWebView  

    分类: iPhone | 评论: 0 | 2010年7月7日 | 浏览:

    方法一,使用一个UIImageView实例做子视图,并且放最后面

    Objective-c代码
    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:
    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:

    1 随机数的使用

    1. 头文件的引用
       
    2.         #import <time.h>
       
    3.         #import <mach/mach_time.h>
      ...

    查看...

    Tags: UINavigationController  iPhone  object-c  navigation  viewcontroller  

    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:

    原作者:Lin

    After a lot of trial and mistakes, finally I kinda figured out how to make UINavigationController work…
    1. initialise
    To initialise:
    1.1. with a default root controller:
    self.controller = [mainController getInstance]; 
self.nav = [[UINavigationController alloc] 
initWithRootViewController:self.controller];
    ...

    查看...

    Tags: UINavigationController  手机  程序  cocoa  object-c  

    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:

    给UITableView增加一个好看的背景能为应用程序增色不少,并能促进app的销售,但是随便增加一个背景图片会史你的app更加丑陋。

    错误的方式:

    1. //This method produces odd artifacts in the background image:
       
    2. ATableViewController *yourTableViewController = [[ATableViewController alloc] initWithStyle:UITableViewStyleGrouped];
      ...

    查看...

    Tags: UITableView  手机  程序  

    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:

    图7-2 UIViewController类.jpg

    ...

    查看...

    Tags: view  viewcontroller  手机  程序  

    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:

    用过了NavigationBar的titleView和leftButtonItem,rightButtonItem后,我们也可以修改NavigationBar的backBarButtonItem。
    用自定义一个backBarButtonItem用BarButtonItem声明,也可以用hidesBackButton来隐藏NavigationBar的返回按钮呢!

    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeInfoLight];
    ...

    查看...

    Tags: 手机  程序  开发  cocoa  navigation  

    分类: iPhone | 评论: 0 | 2010年2月9日 | 浏览:

    So… what I decided to do was read through his tutorials and basically construct the classes in a way that made sense to me – with a few tweaks along the way of course :)

    The code in all its glory is below. What we have is essentially a totally generic gravityObject class that can be dropped into any view, and any number of times. What’s more, you actually initiate the object with a starting position and a PNG image (which for me, made more sense than drawing a circle on the screen – but you can change this part to suit your needs. So, without further ado:

    查看...

    Tags: 手机  开发  程序  代码  重力  感应  实例  

    分类: iPhone | 评论: 0 | 2009年12月30日 | 浏览:

           在iPhone手机应用程序开发中, 应用iPhone重力感应器方面的教程或例子文章几乎没有,英文方面较为完整的也比较少,今天发现了一个应用重力感应做的游戏的完整的教程(Gravity Tutorial for iPhone),值得借鉴和参考。

          总共分为5个部分讲解,下面是各章节的连接地址:

    Gravity Tutorial for iPhone Part 1       Gravity Tutorial for iPhone Part 2

    查看...

    Tags: 重力  感应  代码  程序  手机  

    分类: iPhone | 评论: 0 | 2009年12月30日 | 浏览:

    原文标题

    Drawing a Grid in a UITableView

    by tjs on October 31, 2008

     

    UITableView is probably the most used view on the iPhone. It’s flexible and the UI is ideally suited to use on the iPhone. There are lots of examples on how to add multiple items to a UITableViewCell. However, I needed to present some data in a more traditional spreadsheet style grid. The results worked well and enabled me to pack a lot of information on the screen that was very hard to follow without the vertical grid. I’ll show a very simplified version here you can use to add vertical lines to your UITableView.

     

    查看...

    Tags: UITableView  iPhone  实例  object-c  程序  开发  

    分类: iPhone | 评论: 0 | 2009年12月28日 | 浏览:

    作者:孙东风 2009-11-11
    ...

    查看...

    Tags: 手机  开发  程序  软件  数据  缓存  

    分类: iPhone | 评论: 0 | 2009年12月26日 | 浏览:

    前言:iPhone是个极具艺术性的平台,相信大家在开发过程中一定有很多感触,希望能写出来一起交流,所以开了这个帖子,以后还会维护。

    ...

    查看...

    Tags: 实例  object-c  手机  软件  程序  

    分类: iPhone | 评论: 0 | 2009年12月26日 | 浏览:

    UITableView - Sectioned Table View
    UITable View—分组列表视图

    Introduction
    本章介绍

    So far we have seen how easy it is to display list of items in a table view. As it turns out, displaying grouped items is easy too. This is the third tutorial in the UITableView tutorial series and it borrows its source code from the previous one. This is how the final app will look like
    ...

    查看...

    Tags: UITableView  iPhone  实例  object-c  

    分类: iPhone | 评论: 0 | 2009年6月18日 | 浏览:

    Introduction
    介绍

    In this tutorial, you will learn how to navigate to the detail view and also pass some data at the same time. This is the second tutorial in the UITableView tutorial series and inherits its source code from the first tutorial.

     

    在这篇教程中,你将学会如何导航到细节视图(detail view)并同时传递一些数据。这是UITableView系列教程中的第二篇,本篇教程继承我们在上一篇教程中所用到的代码和方法。

    查看...

    Tags: UITableView  iPhone  实例  object-c  

    分类: iPhone | 评论: 1 | 2009年6月16日 | 浏览:

    In most cases, the requirement is to select an item from the list displayed and then load the details of the selected item in a detail view. UITableView is only responsible for the list of items it displays, the navigation that happens between the list of items and the detail view is handled by the UINavigationController. So the table view always works with the navigation controller and viceversa. This is how the final app looks like:

     

    在开发iPhone应用程序的大多数时候,我们需要展示一个列表,当用户选择其中一个条目 时,展示所选条目的详细信息。UITbleView是最适合显示项目列表控件,而UINavigationController控制的导航条则配合列表界 面和细节信息界面的切换。所以table view视图总是和导航条控件一并使用,反之亦然。本例最终界面如下:

     

    查看...

    Tags: UITableView  iPhone  实例  object-c  

    分类: iPhone | 评论: 0 | 2009年6月16日 | 浏览: