pfquerytableviewcontrolle

Setting background image for PFQueryTableViewController

假如想象 提交于 2019-12-25 03:55:13
问题 Swift iOS xcode 7.1 Beta I am trying to set background image on the PFQueryTableViewController . I tried dragging the table from the story board (Ref. outlet: tableView) but I am not able to make the code work referring to that outlet. let image = UIImage(named: "Background") tableView.backgroundView = UIImageView(image: image) The app crashes stating: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: . I even tried setting

Setting background image for PFQueryTableViewController

China☆狼群 提交于 2019-12-25 03:55:10
问题 Swift iOS xcode 7.1 Beta I am trying to set background image on the PFQueryTableViewController . I tried dragging the table from the story board (Ref. outlet: tableView) but I am not able to make the code work referring to that outlet. let image = UIImage(named: "Background") tableView.backgroundView = UIImageView(image: image) The app crashes stating: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: . I even tried setting

cellForNextPageAtIndexPath not visible in swift2

丶灬走出姿态 提交于 2019-12-24 15:03:47
问题 I am implementing PFQueryTableViewController from Parse with sections and pagination. Because I am using sections, I need to set the 'load more' cell on my own. However, It seems that I can't access the method cellForNextPageAtIndexPath - I get an error: ''UITablView' does not have a member name 'cellForNextPageAtIndexPath' ' . I've looked around and the only resource on the subject seems to be this unanswered question: cellForNextPageAtIndexPath in swift Here's my code: override func

Voting buttons with Parse in Swift

无人久伴 提交于 2019-12-13 05:26:19
问题 A quick overview of what I'm trying to make. I'm making an app to show my film reviews. I have a PFQueryTableviewController of which I use a custom cell. This table shows films which come from my Parse database. In each cell, there a 3 UIButtons, of which I want the user to use to vote for the film (happyVote, OkVote, sadVote). Over the top of each button is a UILabel that simply displays a count. How I want it to work When a user presses one of the buttons, the vote increases by 1. When a

PFQueryTableViewController pagination doesn't work with heightForRowAtIndexPath

无人久伴 提交于 2019-12-12 04:06:48
问题 I am using parse.com framework with Swift and in PFQueryTableViewController when I set the pagination it won't work. If the DB has less rows than the number set in objectPerPage it works fine, but if there are more rows and when I run the app it keeps showing the loading screen and nothing is downloaded, when I do "swipe as refresh" it crash as Error *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]