摘要:
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。根据设置的宽度和高度,将接下来的一个像素进行左右扩展和上下拉伸。注意:可拉伸的范围都是距离leftCapWidth后的1竖排像素,和距离topCapHeight后的1横排像素。参数的意义是,如果参数指定10,5。那么,图. 阅读全文
摘要:
父类 推子类pushview。。。子类返回父类 就用 poptoview[self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex:2] animated:YES];或 for (UIViewController *temp inself.navigationController.viewControllers) { if ([temp isKindOfClass:[你要跳转到的Controllerclass]]) { [self... 阅读全文
摘要:
SamplesController *aSamplesController = [[SamplesControlleralloc] initWithStyle:UITableViewStylePlain]; testsViewController *aSamplesC = [[testsViewControlleralloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:aSamplesC]; sample... 阅读全文
摘要:
阅读全文
摘要:
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 阅读全文
摘要:
城市天气ID直辖市"北京","上海","天津","重庆""101010100","101020100","101030100","101040100"特别行政区"香港","澳门""101320101","101330101"黑龙江"哈尔滨","齐齐哈尔","牡丹江","大庆",& 阅读全文
摘要:
中国国家气象局天气预报接口总共提供了三个:http://www.weather.com.cn/data/sk/101010100.htmlhttp://www.weather.com.cn/data/cityinfo/101010100.htmlhttp://m.weather.com.cn/data/101010100.html 阅读全文
摘要:
permittedArrowDirections: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 阅读全文
摘要:
UITextField *ty=[[UITextFieldalloc] init];ty.contentVerticalAlignment =UIControlContentHorizontalAlignmentCenter; 阅读全文