Как установить png-изображение с прозрачностью для фона заголовка раздела в UiTableView?background image для раздела в UitableView
1
A
ответ
8
Думаю, вам нужно будет создать UIView с UIImageView в нем.
Нечто подобное:
- (void) createHeader
{
header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];
header.backgroundColor = [UIColor colorWithWhite:0 alpha:0];
UIImageView *headerImage = [[UIImageView alloc] initWithImage:yourImage];
[header addSubview:headerImage];
[headerImage release];
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
return header;
}
+0
Спасибо, он работает – 2010-08-06 17:41:32
+0
отлично, не забудьте отметить поток как разрешенный ;-) есть приятная временная кодировка ... – TheSquad
Смежные вопросы
- 1. UITableView background image для содержимого
- 2. Дизайн UITableView background image
- 3. UITableView Background Image
- 4. UITableView background image для всех ячеек
- 5. UITableView Expandble проблема Раздела Cell Image
- 6. UITableViewCell background image path
- 7. UITableView Section Background?
- 8. background image для CGContext
- 9. android background image on background image
- 10. UITableView cell background
- 11. Могу ли я настроить заголовок раздела в UITableView? (font, image ...)
- 12. background-image with parallax
- 13. UIButton image/background image weirdness
- 14. Прокрутка раздела в UITableView
- 15. background-image: для: посещенных ссылок?
- 16. Отключение разделителя для определенного раздела UITableView
- 17. изменить background-image opacitiy в разделах
- 18. passwordfield background image
- 19. ListView with background image
- 20. shrink background-image
- 21. WPF FixedDocument background image
- 22. Css background-image не отображается
- 23. WP7 page background image
- 24. set background image xcode6
- 25. jQuery background-image animation
- 26. css full image background issue
- 27. пользовательское поле background image
- 28. three.js set background image
- 29. set background image alertdialog
- 30. CSS background image svg
пожалуйста, помогите мне! – 2010-08-06 10:13:08