Search Results

Search found 3 results on 1 pages for 'ajpatel'.

Page 1/1 | 1 

  • How to remove seprator in tableView?

    - by AJPatel
    i make one tableview in which i add button type cell using custom cell.....looks good but when their is less cell in tableview at that time seprator looks very bad...... in design so thier is any solution than tell me............ i try to remove seprator from design but it not work.... Thanks in advance.......... - (void)viewDidLoad { self.navigationItem.title = @"My List"; self.tblView.separatorStyle = UITableViewCellSeparatorStyleNone; [[self tableView] setRowHeight:70]; [[self tableView] setBackgroundColor:[UIColor blackColor]]; Helath_ndroidAppDelegate *appDeleg = (Helath_ndroidAppDelegate *)[[UIApplication sharedApplication] delegate]; NSMutableArray *temp1 =[[NSMutableArray alloc] init]; appDeleg.recipCategoryFromDatabase = temp1; [temp1 release]; dataBase *objData = [[[dataBase alloc] init] autorelease]; [objData selectrecepFromDatabase]; [[self tableView] setSeparatorStyle:UITableViewCellSeparatorStyleSingleLineEtched]; [super viewDidLoad]; }

    Read the article

  • application Crash when assign multiple argu fun to dynamic button

    - by AJPatel
    for (int i=0;i<[tableDataSource count];i++) { NSDictionary *dict = [tableDataSource objectAtIndex:i]; rowText = [dict objectForKey:@"title"]; UIButton *btn = [UIButton buttonWithType: UIButtonTypeRoundedRect]; [btn setTitle:rowText forState:UIControlStateNormal]; [btn addTarget:self action:@selector(myActionbtnText:) forControlEvents:UIControlEventTouchUpInside]; btn.frame = CGRectMake(60, 40+2*(40*i), 200, 40); btn.alpha = 0.81; [self.view addSubview:btn]; } I got error at assign Action to dynamic button MY action is given Below -(void) myAction:(NSString *)btnText; { NSLog(@"%@ Button Clicked",btnText); }

    Read the article

  • How To Draw line on touch event ?

    - by AJPatel
    Hey i m beginner of objective C Please Help me i make following code but not work..... -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; if ([touch view] == self.view) { CGPoint location = [touch locationInView:self.view]; loc1 = location; CGContextMoveToPoint(context, location.x, location.y); NSLog(@"x:%d y:%d At Touch Begain", loc1.x, loc1.y); } } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; if ([touch view] == self.view) { CGPoint location = [touch locationInView:self.view]; CGContextMoveToPoint(context, loc1.x, loc1.y); NSLog(@"x:%d y:%d At Touch Move", loc1.x, loc1.y); CGContextAddLineToPoint(context, location.x, location.y); NSLog(@"x:%d y:%d", location.x, location.y); } }

    Read the article

1