Hi all,
I have come across this situation that after user has tapped on edit and the table turns into editing mode then user moves one of the rows.
So my question is :currently the source array comes from web service so
after moving the rows where to store the rearrangement i.e.
rank that the user has given so next time the user come...
im using code as below
[sampleListTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
[sampleListTableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle];
[sampleListTableView deselectRowAtIndexPath:indexPath animated:YES];
the behav...
I have a tableview I'd like to customize based on how many rows it has.
If it has no rows, I'd like the background image to prompt the user to add content.
If it has 1 or more rows, I'd like it to have a different background image, in order to display the content.
I'm using a fetched results controller to populate my tableview, by the ...
I've an application in which each row contains an uiimageview and an uibutton. I have created them using custom cells, uitableviewcells. The button is to trigger the method, uiimagepickercontroller to pick an image from the library and show it in the imageview. I need that any user who uses the application can rearrange the rows as they ...
I m new to iphone world .. help me out of this.
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *MYIdentifier =@"MyIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MYIdentifier];
if(cell==nil)
{
cell=[[[UITableViewCell alloc] initWith...
Been looking for a solution for a long while now, but still no success, perhaps someone here can help me.
I created an application that runs a thread that communicates with a webserver in the background. Occasionally the thread receives information that I'd like to display in a UITableView. Because of the dynamic nature of the content I...
What would cause a tableview cell to remain highlighted after being touched? I click the cell and can see it stays highlighted as a detail view is pushed. Once the detail view is popped, the cell is still highlighted.
...
Hello,
I am displaying some data using a UITableViewController, my table has 2 static sections with 6 static rows each. And I am subclassing UITableViewCell in order to add 3 Labels and a View, in the view i draw an arrow in only one of the cells in one of the sections.
This all goes perfectly fine. Till i scroll down... then the arrow...
I'm trying to implement a UITextView in a table cell at the bottom of a table view.
I've tried the suggestions here http://stackoverflow.com/questions/594181/uitableview-and-keyboard-scrolling-problem, and other solutions as well, but they're a bit different because I have to artificially add extra height to the current view in order to...
I have a UITableViewController which in it's tableView:didSelectRowAtIndexPath method, sets up a view controller, and calls
[self.navigationController pushViewController: viewController animated:YES].
When i select a row in the root controller, the second viewController loads but is empty - table view loads but has no data. Here, tab...
I want to change the textLabel and detailTextLabel of a cell when it has been selected.
I've tried the following, but no change occurs:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
MyAppDelegate *appDelegate = (MyPhoneAppDelegate*)[[UIApplication sharedApplication] delegate];
UIT...
I have a CoreData-driven navigation app and I'm trying to figure out why It's crashing.
I've got a hierarchy which is 3 view Controllers deep, all related by coredata relatioships, like this.
TableViewA =relationship= TableViewB =relationship= TableViewC
I'm honestly a novice at core data and I think my problem lies in the fetched res...
I can not find a good spot to call selectRowAtIndexPath:animated:scrollPosition: to INITIALLY select a row in UITableView. Table data have not been loaded when the table view controller is initialized, so I can't do selection immediate after the initialization of my UITableViewController(Over bound exception would occur otherwise).
...
I've got a UIView that I'm adding to a cell's content view in a particular section (Section 1 specifically), as shown below:
[cell.contentView addSubview:self.overallCommentViewContainer];
When I quickly scroll up/down - the UIView appears in Section 0 - even though I never added the UIView to any of the cell's in Section 0.
Here's a...
I have a UITabBarController as part of my app delegate and I want to trap when the user touches a specific tab (the favourites) and force the table within it to reload the data.
What would be best practice in this instance?
I have added the UITabBarDelegate protocol to my app delegate and implemented the didSelectViewController method....
hey all,
i've got an annoying problem in my tabelview..i was able to achive color-changing cells (blue/white/blue/...), but now i'm in trouble with my text which has a white background on the blue cells.
i've tried for testing to set a background color to red
// try to set the backgroundcolor of the text ???
cell.textLabel.text.b...
I have a UITextView within a UITableView cell. I have been unable to get the keyboard to consistently resign after editing. Detecting DidEndEditing hasn't worked. Adding my own "done" button to the toolbar brings intermittent results. Advice?
(Note: This is UITextView not UITextField. Thanks)
...
In my UIView nib file, I've got a UITableView which takes up about half the screen. The correpsponding .h and .m files are:
// helloViewController.h
#import <UIKit/UIKit.h>
@interface helloViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
NSArray *locationArray;
}
@property (nonatomic, retain) NSArray ...
Is the little blue mail dot the iPhone mail program uses to signify new mail, on each tableview cell, available in the SDK? Or, it is available for download some where on the Internet?
...
In my app, when a user touches a table cell, the cell is disabled and the cell's reorder control disappears. If they touch it again, the cell is enabled and the reorder control reappears. The way I'm currently implementing this is by calling reloadRowsAtIndexPaths:withRowAnimation:, but this is sloooowww. If I just change the showsReorde...