如何使按钮透明的UITableViewCell的背景(How to make background of UITableViewCell with buttons transparent)
在IB中,在文件的所有者是UITableViewController的子类的.xib中,我希望从xib加载的单元格的结构是:
(的UITableViewCell)细胞 - >(UIView的)视图 - >(的UIButton)but1,but2,but3。
我试图让按钮出现在桌子上,没有单元格的框架/背景。
我已经制作了单元格的背景和View的背景clearColor,但是我现在得到的是单元格上的黑色背景(带圆角),如下所示:
由于桌面背景的条纹本质,如果我为单元格选择相同的背景,那么条纹将无法完美对齐,因此无法接受。 我只需要该死的细胞是半透明的,我不知道黑色是从哪里来的。
有任何想法吗?
In IB, on the .xib where the file's owner is a subclass of UITableViewController, the structure of a cell that I wish to load from the xib is:
(UITableViewCell)cell->(UIView)View->(UIButton)but1,but2,but3.
I am trying to have the buttons appear on the table without the frame/background of the cell.
I've made the cell's background and its View's background clearColor, but what I get now is a black background on the cell (with the rounded corners), like so:
Because of the striped nature of the tableview's background, if I choose that same background for the cell then the stripes won't align perfectly, so it is not acceptable. I just need the damn cell to be translucent, I don't know where the black is coming from.
Any ideas?
原文:https://stackoverflow.com/questions/3763635
最满意答案
相关问答
更多-
在PHP中不使用LZ4压缩而不是ZLIB有什么缺点吗?(Is there any drawback to not to use LZ4 compression instead ZLIB in PHP?)[2022-08-14]
您可以尝试查看这些数据: http : //catchchallenger.first-world.info//wiki/Quick_Benchmark : _Gzip_vs_Bzip2_vs_LZMA_vs_XZ_vs_LZ4_vs_LZO 应该对你的决定非常有帮助。 另一方面,恕我直言,没有使用LZ4的缺点,它可能不像gzlib那么普遍,但如果你只在你的服务器上使用它,这应该没有问题。 You could try to have a look at these data: http://catchcha ... -
c -lz库链接顺序(未定义引用符号“inflateInit2_”)(c -lz library link order (undefined reference to symbol “inflateInit2_”))[2022-06-04]
对于GCC和Clang(也可能是例如英特尔编译器),规则是在命令行中稍后指定的库中满足以前在命令行中的引用。 例如,如果foo.c引用库栏中的函数,则编译时是正确的 $ gcc foo.c -lbar ,并且编译不正确 $ gcc -lbar foo.c 因此,最安全的做法是将-lz放在最后,以便它可以满足前面指定的所有库的引用。 这是gcc(1)手册页( -l选项)中的相关引用: 它在您编写此选项的命令中有所不同; 链接器按照指定的顺序搜索和处理库和目标文件。 因此, foo.o -lz bar.o在 ... -
我认为你缺少的是zlib1g-dev。 sudo apt-get install zlib1g-dev 运行以上命令将解决问题。 I think what you're missing is zlib1g-dev. sudo apt-get install zlib1g-dev Running above command will solve the issue.
-
CopyLZFileName / CreateLZFileName .. LZ的含义是什么?(CopyLZFileName/CreateLZFileName.. what does LZ means?)[2024-03-29]
我一直认为LZ代表现在使用的最流行的压缩算法(LZ77,LZ78,LZW)的发明者Lempel-Ziv。 据我记得,这些API函数已被用于创建单个压缩文件(又名COMMAND.CO_样式文件命名),在.CAB格式启动之前。 I always thought LZ stood for "Lempel-Ziv", inventors of most popular compression algorithms (LZ77, LZ78, LZW) used nowadays. As far as I rememb ... -
Debian 7.4 - 使用Python 3.4.0进行LXML编译失败(Debian 7.4 - LXML compilation failed with Python 3.4.0)[2023-09-26]
在尝试编译python c-extension时,链接器找不到libz 。 我相信你需要在Debian上使用zlib开发包。 尝试apt-get install zlib1g-dev然后尝试重建。 The linker can't find libz when trying to compile the python c-extension. I believe you need the zlib dev package on Debian. Try apt-get install zlib1g-dev a ... -
在lxml2中找不到-lz库(cannot find -lz library in lxml2)[2022-11-21]
你需要zlib ,一个压缩库。 在Ubuntu上: sudo apt-get install zlib1g-dev You need zlib, a compression library. On Ubuntu: sudo apt-get install zlib1g-dev -
我终于找到了解决方案。 对我而言,我首先遵循此解决方案中的说明。 在我不得不从libiconv中找到一些缺失的部分之后; 我从这里得到了这些。 我提取它的lib并包含内容,就像上面的解决方案(lib到Ruby lib中,包括到Ruby include中)。 在encoding.h中我必须更改#include
之后。 这需要更改为#include ,该文件在之前被提取到Ruby的include目录中。 我能够运行gem install libxml-ru ... -
首先,确保你安装了python-dev 。 接下来,安装zlib-devel 。 yum install -y python-dev zlib-devel First up, make sure you installed python-dev. Next up, install zlib-devel. yum install -y python-dev zlib-devel
-
在这种情况下,您需要使用sudo运行安装: sudo pip install lxml In this case, you need to run the installation with sudo: sudo pip install lxml
-
找到答案: sudo apt-get install lib32z1-dev 在问这个问题之前我应该用Google搜索。 答案就在这里 。 Found the answer: sudo apt-get install lib32z1-dev I should have googled longer before asking the question. The answer was here.