小编Gib*_*ran的帖子

为什么缩放比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万
查看次数

Apple Mach-O链接器错误sqlite3

构建我的应用程序时出现此错误.任何人都可以帮我解决这个问题吗?

我正在使用swift和parse.com.非常感谢你的帮助!

由于我无法发布图片,下面我发布了整个错误消息.

Undefined symbols for architecture i386:
  "_sqlite3_bind_blob", referenced from:
      -[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
  "_sqlite3_bind_double", referenced from:
      -[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
  "_sqlite3_bind_int64", referenced from:
      -[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
  "_sqlite3_bind_null", referenced from:
      -[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
  "_sqlite3_bind_parameter_count", referenced from:
      ___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
      ___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
  "_sqlite3_bind_text", referenced from:
      -[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
  "_sqlite3_close", referenced from:
      ___30-[PFSQLiteDatabase closeAsync]_block_invoke in Parse(PFSQLiteDatabase.o)
  "_sqlite3_column_blob", referenced from:
      -[PFSQLiteDatabaseResult dataForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
  "_sqlite3_column_bytes", referenced from:
      -[PFSQLiteDatabaseResult dataForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
  "_sqlite3_column_count", referenced from:
      -[PFSQLiteDatabaseResult columnNameToIndexMap] …
Run Code Online (Sandbox Code Playgroud)

ios parse-platform swift

15
推荐指数
2
解决办法
1万
查看次数

标签 统计

ios ×2

parse-platform ×2

swift ×2

pfimageview ×1