标签: pfimageview

为什么缩放比UIImageVIew尺寸更大?(使用swift)

我正在尝试显示地名列表,包括它的照片使用PFQueryTableViewController.它包含在ParseUI SDK从parse.com

我设法显示图像.不幸的是,当我将UIImageView模式更改为Aspect填充时,图像变得比它应该更大.

这是图片:

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 = true
        self.paginationEnabled = false
    }

    // Define the query that will provide the data for the table view
    override func queryForTable() -> PFQuery {

        // …
Run Code Online (Sandbox Code Playgroud)

ios parse-platform swift pfimageview

23
推荐指数
3
解决办法
2万
查看次数

使用iOS App和Objective-C代码的Parse.com

直到最近,我一直使用Parse.com进行我的应用程序的数据管理我现在正在开发一个新项目,我有一些问题......

PS我正在使用Xcode 6

首先是PFImageView,你可以确认一下吗?在没有咨询PFImageView的情况下,如何在我的应用程序中绘制图片?我不明白为什么你不能在我的应用程序PFImageView中使用

此外,当我进行查询时,之前(使用键盘上的enter按钮)出现了查询的自动构建块,但现在我发现自己这个

  PFQuery *query = [PFUser query];
  [query findObjectsInBackgroundWithBlock: (nullable PFArrayResultBlock (nullable) block]
Run Code Online (Sandbox Code Playgroud)

parse.com发生了什么?我哪里做错了?有人可以'给我这方面的帮助吗?

ios parse-platform pfimageview

9
推荐指数
1
解决办法
243
查看次数

如何在Swift中使用PFImageView?

我试过简单地将一个拖入我的故事板,但我能找到的就是UIImageView.在我的UIImageView的IBOutlet中,我将其更改为PFImageView,我收到一条错误消息:"使用未声明的类型:'PFImageView'"

PFImageViews在swift中根本不存在吗?

ios parse-platform swift pfimageview

0
推荐指数
1
解决办法
1493
查看次数

标签 统计

ios ×3

parse-platform ×3

pfimageview ×3

swift ×2