小编Pho*_*yaw的帖子

导航后退按钮不显示,如何向UINavigationItem添加后退按钮

我通过库添加UINavigationBar来查看.我还将UINavigationItem添加到此NavigationBar.

在viewController.m中,我添加了以下代码,但后退按钮未显示.

self.navigationItem.title = @"List";
self.navigationItem.backBarButtonItem.title = @"Back";
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ios

7
推荐指数
2
解决办法
2万
查看次数

如何从UITable View单元格中删除白色

请参阅以下附件图像.我想从中删除白色 UITableViewCell.如何从tableview单元格中删除白色. 在此输入图像描述

这是我的代码:

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
   {

        static NSString *CellIdentifier = @"Cell";

        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    cell=nil;

        if (cell == nil) {
         cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
       }
        Schedule *sch=(Schedule*)[tableDataList objectAtIndex:indexPath.row];

        NSString*ptime=@"";

      if(sch.ptime.length<8){
        ptime=[ptime stringByAppendingString:@"  "];
        ptime=[ptime stringByAppendingString:sch.ptime];
     }
    else
   {
     ptime=[ptime stringByAppendingString:sch.ptime];
  }

    UILabel *lbPTime=[[UILabel alloc]initWithFrame:CGRectMake(5, 10, 80, 25)];
    lbPTime.font=[UIFont fontWithName:@"Zawgyi-One" size:15];
    lbPTime.textColor=[UIColor whiteColor];
   [lbPTime setText:ptime];

   NSString*pname=@"";
   pname=[pname stringByAppendingString:sch.pname];
   pname=[pname stringByAppendingString:@" "];

   UILabel *lbPName=[[UILabel alloc]initWithFrame:CGRectMake(lbPTime.frame.size.width, 10, 250, 25)];
   lbPName.font=[UIFont fontWithName:@"Zawgyi-One" size:15];

  CGSize maximumLabelSize=CGSizeMake(296, 9999); …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ios

1
推荐指数
1
解决办法
159
查看次数

以编程方式卸载iPhone应用程序

在我的iPhone应用程序中,我想向用户显示我公司的条款和条件,并要求用户同意或不同意第一次申请加载.如果用户不同意,我想从用户的iphone卸载我的应用程序.可能吗?

iphone cocoa-touch objective-c ios

0
推荐指数
1
解决办法
929
查看次数

标签 统计

ios ×3

iphone ×3

objective-c ×3

cocoa-touch ×1