0
我想下创造出一个下降为我的项目顶部的小箭头,但由于图像中提到的,我不能把箭头符号
请有人帮我创建这个下拉.......
我想下创造出一个下降为我的项目,但我不能把箭头符号作为图像
中提到的请有人帮我创建这个下拉菜单.. .....
@implementation DropdownViewController
@synthesize tabview;
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
// Initialize table data
menu = [NSArray arrayWithObjects:@"My Account", @"Terms of Use", @"Privacy Policy", @"Version",@"Logout", nil];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return [menu count];
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *simpleTableIdentifier = @"SimpleTableCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
}
cell.textLabel.text = [menu objectAtIndex:indexPath.row];
return cell;
}
- (IBAction)btn1action:(id)sender
{
if (self.tabview.hidden==YES)
{
self.tabview.hidden=NO;
}
else
{
self.tabview.hidden=YES;
}
}
我有想法triying在tableview中显示和隐藏点击轮图像时,但不知道带来的图像,但没试过。 – VyTcdc