
iPhone
文章平均质量分 79
z_xiaoyuan
Mobile platform one by one
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Draw roundCorner image in iPhone with sdk
static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth,float ovalHeight) { float fw, fh; if (ovalWidth == 0 || ovalHeight == 0) { CGContextAddRect(cont原创 2009-10-29 12:06:00 · 584 阅读 · 0 评论 -
Rotation transformation
Two WaysOne, reconstruction of the view when rotation//this function will Running after the start of rotation, the final automatically invoked before the occurrence of rotating animation- (void原创 2009-11-11 22:52:00 · 532 阅读 · 0 评论 -
Data from NSDictionary plist
data from plist when plist root is Dictonary NSBundle *bundle = [NSBundle mainBundle]; NSString *plistPath = [bundle pathForResource:@"statedictionary" ofType:@"plist"]; NSDictionary *dictionar原创 2009-11-12 00:04:00 · 362 阅读 · 0 评论 -
Slots in iPhone
#import "CustomPickerViewController.h"#import @implementation CustomPickerViewController@synthesize picker;@synthesize column1;@synthesize column2;@synthesize column3;@synthesize column4原创 2009-11-12 00:43:00 · 425 阅读 · 0 评论 -
iPhone SDK Basic Controllers
1, When you edit with keyboard on ,click the background the keyboard will disappear- (IBAction)backgroundClick:(id)sender {[nameField resignFirstResponder];[numberField resignFirstResponder];}原创 2009-11-11 20:16:00 · 442 阅读 · 0 评论 -
MultiView
Two Points lazy loading and reconstruction - (void)viewDidLoad {BlueViewController *blueController = [[BlueViewController alloc] initWithNibName:@"BlueView" bundle:nil];self.blueViewControl原创 2009-11-11 23:02:00 · 375 阅读 · 0 评论 -
PickerDelegate
UIPickerView self hasVariable:id dataSource; id delegate;BOOL showsSelectionIndicatorNSInteger numberOfComponents; Functions - (NSInteger)numberOfRowsInComponent:(NSInteger原创 2009-11-12 00:00:00 · 519 阅读 · 0 评论