`
修博龙泉
  • 浏览: 313424 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
3.2版本的话可以直接在Xcode的Project下面的Rename修改,而其他的以前版本使用: 1、直接修改info里面的Bundle display name,这个方法只是修改了在模拟器上显示的icon下面的app文字,其他的象Products下面的xx.app,Targets下面的xx,Executables下面的xx等都没有修改。 2、如果要修改products下面的xx.app的名字,就需要修改Project->Edit active target->Build->Product Name。 3、如果要修改targets、executables下面的名字,就修改Pro ...
bjective-C在编译的时候,会根据方法的名字(包括参数序列),生成一个用 来区分这个方法的唯一的一个ID,这个ID就是SEL类型的。我们需要注意的是,只要方法的名字(包括参数序列)相同,那么它们的ID都是相同的。就是 说,不管是超类还是子类,不管是有没有超类和子类的关系,只要名字相同那么ID就是一样的。 我们可以方便的通过方法的名字,获取到方法的ID也就是我们所说的SEL,反之亦然。具体的使用方法如下: 1     SEL 变量名 = @selector(方法名字); 2     SEL 变量名 = NSSelectorFromString(方法名字的字符串); 3   ...
长按地图获取经纬度 引用     UILongPressGestureRecognizer *lpress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)];     lpress.minimumPressDuration = 0.3;//按0.5秒响应longPress方法     lpress.allowableMovement = 10.0;     //给MKMapView加上长按事件     [mapView addGestureRecognizer:lp ...
转自http://blog.csdn.net/likendsl/article/details/7554150 一、概述 iPhone中处理触摸屏的操作,在3.2之前是主要使用的是由UIResponder而来的如下4种方式: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event - (void)touchesEnded:(NSSet *)touches withEvent:(U ...
//显示地图 MKMapView *mapView = [[MKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)]; mapView.showsUserLocation = YES; [self.view addSubview:mapView]; //显示当前用户经纬度,自动缩放到1000米 CLLocationManager *locationManager = [[CLLocationManager alloc] init];//创建位置管理器 locati ...
[self.detailImageView setImageWithURL:[NSURL URLWithString:picture.picUrl] success:^(UIImage *image, BOOL cached) {             } failure:nil];    
  detailImageView.contentMode = UIViewContentModeScaleAspectFit;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization self.wantsFullScreenLayout = YES; } return self; } [[UIApplicatio ...
方法1: [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone]; 方法2: UIView *proxyView = [[UIView alloc] initWithFrame:self.view.frame]; proxyView.hidden=YES; proxyView.autoresizingMask= self.view.autoresizingMask; [self.view.superview addSu ...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableVi ...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {   //取消选中颜色   UIView *backView = [[UIView alloc] initWithFrame:cell.frame];   cell.selectedBackgroundView = backView;   cell.selectedBackgroundView.backgroundColor = [UIColor clearColor] ...
for(int j=0;j<24;j++){ [headerArray addObjectsFromArray:aTicket.result]; } //[headerArray addObjectsFromArray:aTicket.result]; //[headerScrollView setFrame:CGRectMake(0, 0, 320, 30+75*([headerArray count]/4))]; NSLog(@"%d",200+30+75*([headerArray count]/4)) ...
#import <QuartzCore/QuartzCore.h> CALayer *l = [uiimageview layer]; [l setMasksToBounds:YES]; [l setCornerRadius:6.0]; [headerScrollView addSubview:headerImage];
//创建一个UIimageView UIImageView *gifImage = [[UIImageView alloc] initWithFrame:CGRectMake(100,100,56,56)]; NSMutableArray *images = [NSMutableArray array]; for (int i = 1; i <= 5; i ++)//该组共16张图片 { //将要播放的图片加入数组 ...
#import "SCGIFImageView.h" NSString* filePath = [[NSBundle mainBundle] pathForResource:@"1.gif" ofType:nil]; SCGIFImageView* gifImageView = [[[SCGIFImageView alloc] initWithGIFFile:filePath] autorelease]; gifImageView.frame = CGRectMake(0, 0, gifImageView.image.size. ...
Global site tag (gtag.js) - Google Analytics