原创 在window上旋轉
if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) { [self.view setBounds:CGRectMake(0, 0, 1024, 7
原创 navigation自定義title
UILabel *label = [[[UILabel alloc] initWithFrame:CGRectZero] autorelease]; label.backgroundColor = [UIColor cl
原创 新浪微博iOS版SDK
轉自:http://www.cocoachina.com/bbs/read.php?tid-73476-keyword-%CE%A2%B2%A9.html 一、組成和關係 該框架除了由大量的諸如數據連接、數據模型等基礎類支撐外,其主要的
原创 compare
NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:@"White",@"Blue",@"Red",@"Black",nil]; [array sortU
原创 類似qq表情
NSString *s = @"This is a smiley \ue415 face"; testFace.text = s; 上面的/ue415就是表情編碼。更多的表情如下: /ue415 /ue056 /ue0
原创 navigation自定義barbuttonitem
UIButton *tBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 52, 31)]; [tBtn setBackgroundImage:kImageNavigationB
原创 對MVC模式的理解
接觸編程已經有1年的時間了,從剛開始的Java,C#做web開發,到現在objc做iPhone開發一直都在用這MVC開發。今天一個哥們讓我總結下我對MVC的理解,我也是個新人,我就用我的大白話說一下我的理解。 1。對於MVC首先是要了解這
原创 排序問題
NSMutableArray *ma1 = [[NSMutableArray alloc] init]; [ma1 addObject:@"
原创 解析html工具
點擊打開鏈接
原创 將UIColor轉換爲RGB值
//將UIColor轉換爲RGB值 - (NSMutableArray *) changeUIColorToRGB:(UIColor *)color { NSMutableArray *RGBStrValueArr = [[NSM
原创 iphone實現複製粘貼效果
UIPasteboard *paste = [UIPasteboard generalPasteboard];paste.string = @"a";
原创 蘋果私有API
http://hexorcist.com/private_frameworks/html/main.html
原创 tabbar改變顏色
CGRect frame = CGRectMake(0.0, 0, 320, 48); UIView *v = [[UIView alloc] initWithFrame:frame]; [v setBackgroundCo
原创 SegmentControl點擊切換View
[segmentControl_ addTarget:self action:@selector(segmentChangedValue:) forControlEvents:UIControlEventValueChanged]; -
原创 改變badgeValue
改變其他viewcontroller 的tabbar 的 badgeValue UIViewController *tController = [self.tabBarController.viewControllers objectAt