tableView 包含自定义单元格
此自定义单元格中有 UIView 。 UIView有<?php
$account = "$_REQUEST[Account]";
$password = "$_REQUEST[Password]";
$pin = "$_REQUEST[Pin]";
$date = "$_REQUEST[Date]";
$username1 = "$_REQUEST[Username]";
$store1 = "$_REQUEST[Store]";
$category1 = "$_REQUEST[Category]";
$amount1 = "$_REQUEST[Amount]";
$bankaccount1 = "$_REQUEST[BankAccount]";
$notes1 = "$_REQUEST[Notes]";
$millisecond = "$_REQUEST[MilliSecond]";
$sqlaccounts = mysql_connect("localhost", "root", "")
or die (mysql_error());
mysql_select_db("bumblebeesaccounts", $sqlaccounts);
$sql = "SELECT * FROM `users` WHERE `account` = '$account'";
$result = mysql_query($sql, $sqlaccounts);
$verify_account = mysql_fetch_assoc($result);
$key = $verify_account['salt'];
$username = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $username1, MCRYPT_MODE_ECB);
$store = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $store1, MCRYPT_MODE_ECB);
$category = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $category1, MCRYPT_MODE_ECB);
$amount = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $amount1, MCRYPT_MODE_ECB);
$bankaccount = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $bankaccount1, MCRYPT_MODE_ECB);
$notes = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $notes1, MCRYPT_MODE_ECB);
$sqlconnect = mysql_connect("localhost", "root", "")
or die (mysql_error());
mysql_select_db("bumblebeesbudgetapp", $sqlconnect);
$sqlinsert = "INSERT INTO `bob` (`id`, `date`, `username`, `store`, `category`, `amount`, `bank account`, `notes`, `millisecond`, `receiptpicture`)
VALUES (NULL, '$date', '$username', '$store', '$category', '$amount', '$bankaccount', '$notes', '$millisecond', '')";
mysql_query($sqlinsert, $sqlconnect);
echo $username;
echo mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $username, MCRYPT_MODE_ECB);
?>
颜色
UIView 中还有标签。
所以任务是在此标签中设置单元格 - 高度和 UIView - 高度取决于background
(label.text,length等) 。我已经在使用
lines count
但它不允许我达到我需要的结果。我该怎么办?