摘要: - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。根据设置的宽度和高度,将接下来的一个像素进行左右扩展和上下拉伸。注意:可拉伸的范围都是距离leftCapWidth后的1竖排像素,和距离topCapHeight后的1横排像素。参数的意义是,如果参数指定10,5。那么,图. 阅读全文
posted @ 2013-04-09 15:30 xiaoxiaoxigua 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 父类 推子类pushview。。。子类返回父类 就用 poptoview[self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex:2] animated:YES];或 for (UIViewController *temp inself.navigationController.viewControllers) { if ([temp isKindOfClass:[你要跳转到的Controllerclass]]) { [self... 阅读全文
posted @ 2013-04-08 15:16 xiaoxiaoxigua 阅读(201) 评论(0) 推荐(0) 编辑
摘要: SamplesController *aSamplesController = [[SamplesControlleralloc] initWithStyle:UITableViewStylePlain]; testsViewController *aSamplesC = [[testsViewControlleralloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:aSamplesC]; sample... 阅读全文
posted @ 2013-03-22 15:56 xiaoxiaoxigua 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-03-22 15:46 xiaoxiaoxigua 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1、http://www.yuanmasucai.com/ios/2、http://qiannao.com/ls/zhaoguyilang/cac01fa6/3、http://www.any-phone.com/category/mobile_dev/ios/page/24、http://www.techolics.com/apple/20120419_205.html //appcode 阅读全文
posted @ 2013-03-15 10:35 xiaoxiaoxigua 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 城市天气ID直辖市"北京","上海","天津","重庆""101010100","101020100","101030100","101040100"特别行政区"香港","澳门""101320101","101330101"黑龙江"哈尔滨","齐齐哈尔","牡丹江","大庆",& 阅读全文
posted @ 2013-03-01 18:03 xiaoxiaoxigua 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 中国国家气象局天气预报接口总共提供了三个:http://www.weather.com.cn/data/sk/101010100.htmlhttp://www.weather.com.cn/data/cityinfo/101010100.htmlhttp://m.weather.com.cn/data/101010100.html 阅读全文
posted @ 2013-03-01 17:49 xiaoxiaoxigua 阅读(155) 评论(0) 推荐(0) 编辑
摘要: permittedArrowDirections:0; 阅读全文
posted @ 2013-02-25 11:13 xiaoxiaoxigua 阅读(260) 评论(0) 推荐(0) 编辑
摘要: //// ViewController.m// AutoLabelHeight//// Created by pjyin on 12-8-30.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import "ViewController.h"#import <QuartzCore/QuartzCore.h>@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super 阅读全文
posted @ 2013-02-17 11:58 xiaoxiaoxigua 阅读(212) 评论(0) 推荐(0) 编辑
摘要: UITextField *ty=[[UITextFieldalloc] init];ty.contentVerticalAlignment =UIControlContentHorizontalAlignmentCenter; 阅读全文
posted @ 2013-02-17 11:56 xiaoxiaoxigua 阅读(152) 评论(0) 推荐(0) 编辑