iOS 7 UItableview单元格背景视图(iOS 7 UItableview cell background view)
我正在使用图像视图作为tableview单元格背景视图。 当我在xcode 4.x中编译我的源代码时,它可以正常工作,即在iOS 6.x和7.0中都能正常工作。 但是,当我在xcode 5.0中编译我的源代码时,背景图像视图不会显示iOS 7。
任何想法,为什么它不工作? iOS 7中的uitableview单元格背景视图有没有限制?
if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:accountProfileTypeCell]; UIImageView *cellBgView =[[UIImageView alloc]init]; [cellBgView setImage:[UIImage imageNamed:@"cellBgView.png"]]; [cell setBackgroundView:cellBgView]; }
I am using a image view as tableview cell background view. When I am compiling my source in xcode 4.x, it works fine i.e, In both iOS 6.x and 7.0 it is working fine. But when I compile my source in xcode 5.0, the background image view is not appearing iOS 7.
Any idea, why it is not working? is there any restrictions on uitableview cell background view in iOS 7?
if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:accountProfileTypeCell]; UIImageView *cellBgView =[[UIImageView alloc]init]; [cellBgView setImage:[UIImage imageNamed:@"cellBgView.png"]]; [cell setBackgroundView:cellBgView]; }
原文:https://stackoverflow.com/questions/19064198
更新时间:2022-01-03 19:01
最满意答案
相关问答
更多-
您可以使用sp_MSForeeachdb 这种方法将为服务器上的每个数据库收集INFORMATION_SCHEMA.COLUMNS Select * Into #TempFields From INFORMATION_SCHEMA.COLUMNS where 1=0 Declare @SQL varchar(max)=';Use [?]; Insert Into #TempFields Select * From INFORMATION_SCHEMA.COLUMNS ' Execute mast ...
-
Sql Server Management Studio 2008没有脚本表权限(Sql Server Management Studio 2008 not scripting table permissions)[2022-04-21]
我在其中一个SQL Server论坛网站上遇到了这个方便的脚本,但如果我能再次找到它,我会感到不安: CREATE VIEW [dbo].[viw_DBPerms] AS SELECT CASE WHEN o.type = 'P' THEN 'Stored Procedure' WHEN o.type = 'TF' THEN 'Table Function' WHEN o.type = 'FN' THEN 'Scalar ... -
微软摆脱了SSMS 2012,并建议使用WebMatrix中的集成工具(从内存中找不到链接)。 然而,正如微软答复发布的建议,你可以使用SQL Server Compact Toolbox ,它非常有效。 Microsoft got rid of that for SSMS 2012, and suggested to use the integrated tools in WebMatrix instead (from memory, can't find a link for that sorry). ...
-
在SQL Server Management Studio对象浏览器中分组SQL表(Group SQL tables in SQL Server Management Studio object explorer)[2023-09-03]
在SQL Server 2008中,您可以将过滤器应用到对象资源管理器视图。 找到Filter按钮并点击它 定义您的过滤器 - 可以通过对象名称和/或模式进行过滤 您的对象的过滤视图: In SQL Server 2008, you can apply filters to your object explorer views. Find the Filter button and click on it Define your filter - filtering by object name and/o ... -
用于SQL Server 2000的SQL Sever Management Studio(SQL Sever Management Studio for SQL Server 2000)[2022-08-15]
SQL Server 2000管理工具包括企业管理器(如Management Studio),查询分析器(一种执行脚本的工具)和Profiler(一种分析查询的工具)。 你可以在SQL Server 2000中连接和使用SQL Management Studio 2005) 或者如果你想要不同的东西,你可以使用EMS SQL管理器 。 SQL Server 2000 Management Tools includes Enterprise Manager (like Management Studio), ... -
我听说过Aqua Data Studio的好消息 。 适用于Win,OSX,Linux和Solaris。 Update: I had to come back and add to this. Navicat has a FREE solution for MySQL and MS SQL server. They are both available (for free) in the mac app store. App store links: Navicat for SQL Server Navic ...
-
SQL Server Management Studio问题创建脚本的过程(SQL Server Management Studio problem creating scripts of procedures)[2022-03-12]
当脚本选项"Include If NOT EXISTS" clause打开时,似乎会发生这种情况。 你需要这个吗? 如果没有,你可以通过 工具 - >选项 - >脚本 从这个Connect项目看,如果没有它,它看起来不可配置。 This seems to happen when the scripting option "Include If NOT EXISTS" clause is on. Do you need this on? If not you can turn it off via the T ... -
您可以安装SQL Server 2008的Nov CTP。 SSMS支持连接到Azure,就像连接到任何其他内部部署数据库一样。 你也可以尝试这个工具 - http://hanssens.org/tools/sqlazuremanager/ 另一种选择是由Cerebrata提供的工具http://onlinedemo.cerebrata.com/sqlazureclient/ 。 You can install the Nov CTP of SQL Server 2008 . The SSMS suppor ...
-
使用SQL Server 2012 Management Studio的数据仓库(Data Warehouse with SQL Server 2012 Management Studio)[2022-04-02]
有几个移动件。 首先,您需要确保您连接的SQL Server安装并运行了SQL Server Analysis Services(SSAS)。 其次,当您连接到服务器时,您需要连接到Analysis Services而不是数据库引擎 我无法从内存中回想起来,但可能的第三个问题是,当您安装SSMS时没有选择Analysis Services组件,但我认为如果我记得它们会默认安装。 There are several moving pieces. First you need to ensure that th ... -
您已连接到SQL Server的不同实例。 Visual Studio连接到LocalDB实例,而SQL Server Management Studio连接到SQL Server Express实例。 要解决此问题,只需在SQL Server Management Studio工具的登录步骤中选择本地实例。 You are connected to different instances of SQL Server. Visual Studio is connected to a LocalDB inst ...