Tag: uitableview

login using UITableView

How can I create a login for username/password just like in the skype application? I know it’s a grouped table view.. but how can I do that? I searched the site and found the following code: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @”Cell”; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell […]

create a simple chat view in ios

I need to create a simple chat view in which i can show messages from two ends (sender and receiver) like any Message App . What i have done till now is , created a UITableView , A UIButton and a UITextField. And on that UIButton tap , i am adding UITextField text to array […]

Cocoa: Why is my table view blank?

Why is my table view blank? It was fine until I added “initWithStyle” Here is what it looks like: And here is what my code looks like: Here is my .h: #import <UIKit/UIKit.h> @interface TableViewController : UITableViewController { NSMutableArray *jokes; IBOutlet UITableView *jokeTableView; } @property (nonatomic, retain) NSMutableArray *jokes; @property (retain) UITableView *jokeTableView; @end And […]

Show scrollbar in UITableView before the table is dragged down. In a Way, the UIScrollBar should always be visible

In a I am using several UITableView in my app. Some of them contain several rows, while some have two three only. What I need is: if the table contains several rows, then the scrollbar should be visible before the user even drags the table down. Or in another way, is it possible to make […]

EXC_BAD_ACCESS Crash in UITableView when number of rows is 0

I am having a consistent crash with my UITableView when I set the number of rows in the table to zero. It crashes with an EXC_BAD_ACCESS error. The crash is internal to the UITableView, so I cannot directly see what went wrong, though it should be a stupid mistake on my part. The stack trace […]

UIScrollView within a UIScrollView, how to keep a smooth transition when scrolling between the two

I have the following layout (see below), which for most circumstances works just fine. The user is able to scroll within the blue UIScrollView (which for all intents and purposes is a UITableView, but this question generalises this), and then when they’ve reached the end of this scroll view, they can start scrolling again (they […]

How to disable multi click on button?

I have a UITableView: Cell 1: Button 1->push to view controller A Cell 2: Button 2->push to view controller B It works fine. However, when I try to hold and press two buttons at the same time, my app receives following warning: nested push animation can result in corrupted navigation bar. Finishing up a navigation […]

TableView in UIPopOverView Issue

I have a issue in UIPopover, I have added UITableView in UIPopover When I am running its running good in iOS7.* as below:- But while I am running in iOS8, It display as below: My Code is as below CustomPopOverViewController *viewControllerForPopover = [self.storyboard instantiateViewControllerWithIdentifier:@”CustomPopOverVC”]; viewControllerForPopover.delegate = self; int setTimeFlag = [[[selectedModuleProgram objectAtIndex:[sender tag]] valueForKey:kProgram_Mst_Program_Time_Flag] intValue]; […]

ViewWithTag: returns nil on UITableViewCell only first time

When UITableViewCell is loaded first time from Storyboard via dequeueReusableCellWithIdentifier: viewWithTag: returns nil object. But on second and next reloads it returns proper object. My tableView is embedded in UIViewController(in Storyboard) with prototype cells cellAttachment = [_tableView dequeueReusableCellWithIdentifier:@”cellAttachment”]; UIButton *btnAttachment = nil; btnAttachment = (UIButton*)[cellAttachment viewWithTag:10]; When cellAttachment is loaded first time, btnAttachment is nil. […]

Static UITableViewCell changes during viewWillAppear not reflected in display

I am using some static UITableViewCell‘s configured in the Storyboard to display some setting information. Some of the other cells should be disabled if one of the other settings is toggled off. In order to put the cells into the proper state, during viewWillAppear I read the settings from NSUserDefaults and then change the cells […]