Tag: pfimageview

我如何在Swift中使用PFImageView?

我尝试了简单地拖动一个到故事板,但是我能find的就是UIImageView。 在我的UIImageView的IBOutlet中,我将其更改为PFImageView,并且出现错误消息:“使用未声明的types:'PFImageView'” PFImageViews是不是存在于swift中?

Parse.com与iOS应用程序和Objective-C代码

直到最近,我一直使用Parse.com进行数据pipe理我的应用程序我正在做一个新的项目,我有一些问题…. PS我正在使用Xcode 6 首先有PFImageView ,你可以证实这一点? 在这一点上没有咨询PFImageView我怎么能在我的应用程序中绘制图片? 我不明白你为什么不能在我的应用PFImageView中使用 另外,当我做一个查询,以前(使用键盘上的inputbutton)出现了查询的自动构build块,但现在我发现自己 PFQuery *query = [PFUser query]; [query findObjectsInBackgroundWithBlock: (nullable PFArrayResultBlock (nullable) block] 发生什么parse.com? 我在哪里做错了? 有人可以给我这个帮助吗?

图像不在PFQueryCollectionViewController中显示

我正在开发一个iPhone应用程序,该应用程序应该在UICollectionView显示图像。 图像保存在Parse云中,我使用PFQueryCollectionViewController的子类来查询和显示图像。 点击一个MKMapView标注会触发显示CollectionViewController的segue。 第一次显示CollectionViewController时,图像不会出现在单元格中。 但是,如果我回到MapView ,然后返回到CollectionViewController ,图像出现在单元格中。 如何在第一次显示PFQueryCollectionViewController时显示图像? 这是我的代码: class PhotoGridCollectionViewController: PFQueryCollectionViewController { override func viewDidAppear(animated: Bool) { } override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } // MARK: UICollectionViewDataSource override func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int { //#warning Incomplete method implementation — […]

为什么要放大比UIImageVIew大小给更大的形象? (使用swift)

我试图显示地名的列表,包括使用PFQueryTableViewController的照片。 它包含在parse.com的ParseUI SDK中 我设法显示图像。 不幸的是,当我将UIImageView模式更改为Aspect fill时,图像变得比应该大。 这里是图片: https://dl.dropboxusercontent.com/u/86529526/pic_normal.png https://dl.dropboxusercontent.com/u/86529526/pic_error.png 在pic_normal ,你会看到两个单元格,两个正常的图像。 在pic_error ,第二个单元格将被第一个单元格图像覆盖。 谁能帮我解决这个问题? 我也把我的整个代码放在这里: import UIKit class TableViewController: PFQueryTableViewController, UISearchBarDelegate { @IBOutlet var searchBar: UISearchBar! // Initialise the PFQueryTable tableview override init(style: UITableViewStyle, className: String!) { super.init(style: style, className: className) } required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) // Configure the PFQueryTableView self.pullToRefreshEnabled = […]