English 中文(简体)
A. 如何调整可调用的电文
原标题:How to resize UITableViewCell Background in editing mode

我在一张桌上看到每个囚室的习俗形象。 通常情况下,这种背景是完美的,能够填满所有的囚室。 当表态以编辑方式进入时,“-”纽扣地出现在左边,所有物体均被压缩,在左边的I下怀有背景:有白色地区。 谁能帮助我? 背景形象大到足以填充所有囚室,但经过编辑。 我能否解决这个问题? 感谢很多人!

最新情况:

我在我可读的电文中使用了这一代码:

- (void) layoutSubviews
{

     UIImage *backgroundImage = [UIImage imageNamed:@"sfondoCella2.png"];
     UIImageView *bgView = [[UIImageView alloc] initWithFrame:self.bounds];
     bgView.image = backgroundImage;
     self.backgroundView = bgView;
     [bgView release];

}

确立背景和直言语以正常方式运作良好,但当你以编辑方式工作时,都是错误的:通知红色删除的纽顿没有出现,牢房的开端(与IB所述背景相比)不正确。

最佳回答

我不认为,可以通过国际局增加背景形象。 相反,我假定你只是增加一个UIImage分光。

我把背景图像添加到密码的桌子上,我没有你描述的问题。

UIImage *backgroundImage = [UIImage imageNamed:@"my-bg.png"];
UIImageView *bgView = [[UIImageView alloc] initWithFrame:self.backgroundView.frame];
bgView.image = backgroundImage;
cell.backgroundView = bgView;
[bgView release];

http://developer.apple.com/IPhone/library/documentation/UIKit/Reference/UITableViewCell_Class/Reference/Reference.html#/apple_ref/doc/uid/TP40006938-CH3-SW69” rel=“nofollow noretinger”>UITableViewCell spuoutSubviews 方法,然后告诉IB,这是你的囚室。

扩大可上诉的意见 你们的单位有能力凌驾以下方法之上,并完全控制着囚室在被洗衣或挑选时如何看待。

- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
问题回答

你也许会把图像观点作为<代码>的子目。 http://www.ohchr.org。 页: 1

http://www.un.org/Depts/DGACM/index_french.htm 采取分化的方式并不变化。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签