上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页
摘要: -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark{ NSLog(@"Country = %@", placemark.country); ... 阅读全文
posted @ 2014-03-27 21:50 菜鸟程序猿 阅读(242) 评论(0) 推荐(0) 编辑
摘要: UIView *customView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 75.0f, 30.0f)]; UIButton *editorCityBtn = [UIButton buttonWithType:UIButtonTypeCustom]; [editorCityBtn setFrame:CGRectMake(0.0f, 0.0f, 30.0f, 30.0f)]; [editorCityBtn setBackgroundImage:MF_PngWithS... 阅读全文
posted @ 2014-03-27 15:01 菜鸟程序猿 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: for(int i = 0;i<[view.subviews count];i++){[ [ view.subviews objectAtindex:i] removeFromsuperview];} 阅读全文
posted @ 2014-03-21 22:20 菜鸟程序猿 阅读(170) 评论(0) 推荐(0) 编辑
摘要: #import @interface TabBarViewController : UITabBarController+ (TabBarViewController *)sharedTabBarController;@end#import "TabBarViewController.h"#import "FirstViewController.h"#import "SecondViewController.h"#import "ThirdViewController.h"@interface TabBarView 阅读全文
posted @ 2014-03-14 16:19 菜鸟程序猿 阅读(209) 评论(0) 推荐(0) 编辑
摘要: // 判断设备是否有通话功能 NSString *deviceType = [UIDevice currentDevice].model; if([deviceType isEqualToString:@"iPod touch"]|| [deviceType isEqualToString:@"iPad"]|| [deviceType isEqualToString:@"iPhone Simulator"]) { UIAlertView *alert=[[UIAlert... 阅读全文
posted @ 2014-03-13 15:13 菜鸟程序猿 阅读(1570) 评论(1) 推荐(0) 编辑
摘要: // 判断设备是否有发送邮件功能 NSString *deviceType = [UIDevice currentDevice].model; if([deviceType isEqualToString:@"iPod touch"]|| [deviceType isEqualToString:@"iPad"]|| [deviceType isEqualToString:@"iPhone Simulator"]) { UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@&quo 阅读全文
posted @ 2014-03-13 15:12 菜鸟程序猿 阅读(368) 评论(0) 推荐(0) 编辑
摘要: - (NSMutableArray *)QuickSort:(NSMutableArray *)list StartIndex:(NSInteger)startIndex EndIndex:(NSInteger)endIndex{ if(startIndex [temp1 intValue]){ tempIndex = tempIndex + 1; [list exchangeObjectAtIndex:tempIndex withObjectAtIndex:i]; } } ... 阅读全文
posted @ 2014-03-10 15:56 菜鸟程序猿 阅读(660) 评论(0) 推荐(0) 编辑
摘要: VoiceNavigationViewController.m* 客户端需安装百度导航地图#import "VoiceNavigationViewController.h"#import "BMapKit.h"#import "BMKNavigation.h"@interface VoiceNavigationViewController (){ BMKMapView* _mapView;}@end@implementation VoiceNavigationViewController- (id)initWithNibName:(N 阅读全文
posted @ 2014-03-10 14:28 菜鸟程序猿 阅读(588) 评论(0) 推荐(0) 编辑
摘要: #define SNOW_IMAGENAME @"snow"#define IMAGE_X arc4random()%(int)Main_Screen_Width#define IMAGE_ALPHA ((float)(arc4random()%10))/10#define IMAGE_WIDTH arc4random()%20 + 10#define PLUS_HEIGHT Main_Screen_Height/25#import "ViewController.h"@interf... 阅读全文
posted @ 2014-03-07 16:26 菜鸟程序猿 阅读(455) 评论(0) 推荐(0) 编辑
摘要: #define SNOW_IMAGENAME @"snow"#define IMAGE_X arc4random()%(int)Main_Screen_Width#define IMAGE_ALPHA ((float)(arc4random()%10))/10#define IMAGE_WIDTH arc4random()%20 + 10#define PLUS_HEIGHT Main_Screen_Height/25#import "ViewController.h"@interf... 阅读全文
posted @ 2014-03-07 16:06 菜鸟程序猿 阅读(455) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 19 下一页