09 2011 档案

摘要:mainFrame = [[Test_Book1_2_Classes_ViewController alloc] init]; CATransition *transition = [CATransition animation]; transition.duration = 1.0f; /* 间隔时间*/ transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; /* 动画的开始与结束的快慢*/ ... 阅读全文
posted @ 2011-09-25 09:22 威尚 阅读(490) 评论(0) 推荐(0)
摘要://// touchViewController.m// touch//// Created by joe visen on 11-9-21.// Copyright 2011 mjrj.com. All rights reserved.//#import "touchViewController.h"@implementation touchViewController- (void)loadView{ [super loadView]; UILongPressGestureRecognizer *longPressGesture = [[UILongPressGestu 阅读全文
posted @ 2011-09-21 23:52 威尚 阅读(4158) 评论(0) 推荐(0)
摘要://显示进度滚轮指示器-(void)showWaiting:(UIView *)parent { int width = 32, height = 32; CGRect frame = CGRectMake(100, 200, 110, 70) ;//[parent frame]; //[[UIScreen mainScreen] applicationFrame]; int x = frame.size.width; int y = frame.size.height; frame = CGRectMake((x - width) / 2, (... 阅读全文
posted @ 2011-09-11 16:40 威尚 阅读(941) 评论(3) 推荐(0)
摘要:方案一:#import "xmlViewController.h"@implementation xmlViewControllerstatic NSString *feedURLString = @"http://headlines.yahoo.co.jp/rss/sci.xml";- (void)parserDidStartDocument:(NSXMLParser *)parser{ // 解析开始时的处理}- (void)parseXMLFileAtURL:(NSURL *)URL parseError:(NSError **)error{ NS 阅读全文
posted @ 2011-09-04 11:33 威尚 阅读(861) 评论(0) 推荐(0)