tableview

My app crashes when I select a cell on a table view but I cant find where in the code it crashes

橙三吉。 提交于 2019-12-13 06:30:53
问题 I am trying to switch from a table view to a detail view. When I click on the cell it crashes. I have used breaks to try and find where in the code it crashes but I cant find a specific line. It crashes when the segue is performed from the table view to the detail view. I would like to pass some variables to the detail view but I first need to get it to switch to the detail view. I am using storyboard fyi. Any help would be appreciated. UPDATE: The crash log is as follows arg c = (int) 1 arg

Add a tableViewCell to a new TableView by tapping a button

倖福魔咒の 提交于 2019-12-13 06:13:35
问题 I want that ,if the users taps a button, these tableCell should be added to a new tableView (where you can see your favorites). I've one class Car where the content of the cars is synthesized: #import "Car.h" @implementation Car @synthesize name; @synthesize speed; @synthesize selected; @end The CarsViewController contains a tableView where you can find each car: @implementation CarsViewController { NSArray *cars; } @synthesize tableView = _tableView; - (void)viewDidLoad { Car *car1 = [Car

How to add textfields on uicollection view?

坚强是说给别人听的谎言 提交于 2019-12-13 05:45:54
问题 i am doing a project ,where i have to show a view like this i tried to use table view ,but i was unable to implement ,after that i have decided to implement this with the help of collection view.but nothing fruitful happened .i get frustated here because nothing can happen with my view .these are the text fields added on the view and all are clickable,can anyone help me in this i am a fresher so please help me. 回答1: ////////////////// - (UIView *)tableView:(UITableView *)tableView

JavaFX - How to resize a SVG Path right in a TableView

懵懂的女人 提交于 2019-12-13 05:26:18
问题 I'm having issues to render a SVG Image in a TableView with a CellFactory. Im using this code here, but it don't work, the svg image is scaled, but it don't resize. import javafx.application.Application; import javafx.beans.property.IntegerProperty; import javafx.beans.property.SimpleIntegerProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene

NSArray Values are Display after touche in screen in Tableview

两盒软妹~` 提交于 2019-12-13 04:55:19
问题 - (void)viewDidLoad { detailView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 330, 380) style:UITableViewStylePlain]; detailView.rowHeight = 55.0f; detailView.dataSource =self; detailView.delegate =self; NSLog(@"finish0"); [self.view addSubview:detailView]; self.title = NSLocalizedString(@"Routes", nil); self.detailArray = [[NSMutableArray alloc] init]; url = [NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/directions/json?origin=%@&destination=%f,%f&sensor=false"

Can't fill Table with items with javafx

爷,独闯天下 提交于 2019-12-13 04:46:00
问题 I'm not so good at javafx and also in English^^. I programmed a TableView but I don't know why it doesn't fill the Table with the Items I created. Perhaps it fills the Table, but I don't see them. I hope somebody could help me here out. Here is the Code: private final TableView<VerzeichnisDaten> table = new TableView(); private final ObservableList<VerzeichnisDaten> data = FXCollections.observableArrayList(); TableColumn titleCol = new TableColumn("Titel"); TableColumn lastNameCol = new

Retrieve Image for different Class Data browser Parse.com

大兔子大兔子 提交于 2019-12-13 04:31:47
问题 Hello everyone I'm trying to display the profile picture of a user registered with the app. In this query I am getting data from a different class from wherever it is in the photo databrowser. I tried with MatchesQuery but I can not find the right combination ... Probably my code is wrong ... - (void)QueryForTableView { PFQuery *QueryForFriend=[PFQuery queryWithClassName:@"Amicizie"]; [QueryForFriend whereKey:@"A_User" equalTo:[PFUser currentUser]]; [QueryForFriend includeKey:@"Da_User"];

JavaFX: how to “repaint” a tableview

余生颓废 提交于 2019-12-13 03:48:50
问题 I am in troubles... I have a JavaFX Tableview tha cointain, in a column, some results. These results can be "OK", "N/A" and "KO" and if i have an "OK" i paint it in green, if i have a "N/A" i paint in black,if i have a "KO" i paint it in red (all by method setStyle()). The problem is that when i slide the table vertically the colour of the text change randomly and i have "OK" in red or "KO" in green... I think i should use something like repaint() but JavaFX hasn't it, so how can i do? The

JavaFX 11 TableView Cell navigation by TAB key pressed without custom editableCell class

旧时模样 提交于 2019-12-13 03:47:32
问题 The problem: I want to navigate through a TableView from one cell to the next right neighbor cell in JavaFX by using the TAB key. Notice: The TableView is set to editable. And CellSelection is enabled too. tableReceipt.getSelectionModel().setCellSelectionEnabled(true); The handling of the KeyPressedEvent seemingly is not my problem, but to request the focus of the single cell on the right of the current cell. I can focus one cell but when i press the TAB key the focus goes out of the table on

swift: How to Flip Cell between two UITableViewCell

限于喜欢 提交于 2019-12-13 03:38:57
问题 I have two UITableViewCell in a UITableViewController . I want to flip indexPaths on click didSelect method. When I will click indextPath.row “0” in tableViewCellOne it will show indexPath.row “0” of tableViewCellTwo. Now it is not flip properly. Also crash apps after click a few time on didSelect method. Error message is: //Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempted to dequeue multiple cells for the same index path, which is not allowed.