Click the cell to bring up another tableView selection page. The cell tableview
Cell page;
After clicking the cell:
After selecting a cell:
. H
#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>{ UIView * _huiView; UITableView * _btnTableView; UITableView * _tableView;}@end
. M
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // initialize the background image [self initBackGroundView];} # pragma-mark-functions-(void) initBackGroundView {// large tableView _ tableView = [[UITableView alloc] initWithFrame: CGRectMake (0,90, 320, self. view. bounds. size. height)]; _ tableView. delegate = self; _ tableView. dataSource = self; _ tableView. backgroundColor = [UIColor whiteColor]; [self. view addSubview: _ tableView]; // UIView _ huiView = [[UIView alloc] initWithFrame: CGRectMake (-320, 90,320, self. view. bounds. size. height)]; _ huiView. backgroundColor = [UIColor blueColor]; _ huiView. alpha = 0.9; _ huiView. layer. cornerRadius = 10; [self. view addSubview: _ huiView]; // triangle NSString * path = [[NSBundle mainBundle] pathForResource: @ "shangwu_shaixuan_sanjiaoxing" ofType: @ "png"]; UIImage * image = [[UIImage alloc] initWithContentsOfFile: path]; UIImageView * imageView = [[UIImageView alloc] initWithImage: image]; imageView. frame = CGRectMake (150, 12, 20, 15); [_ huiView addSubview: imageView]; // red line UIView * view = [[UIView alloc] initWithFrame: CGRectMake (10, 27,300, 3)]; view. backgroundColor = [UIColor redColor]; [_ huiView addSubview: view]; // tableView _ btnTableView = [[UITableView alloc] initWithFrame: CGRectMake (10, 30,300,200) style: UITableViewStylePlain]; _ btnTableView. delegate = self; _ btnTableView. dataSource = self; _ btnTableView. layer. cornerRadius = 10; [_ huiView addSubview: _ btnTableView];} # pragma-mark-UITableViewDelegate-(CGFloat) tableView :( UITableView *) tableView heightForRowAtIndexPath :( NSIndexPath *) indexPath {if (tableView ==_tableview) {return 100;} return 50;}-(NSInteger) tableView :( UITableView *) tableView numberOfRowsInSection :( NSInteger) section {if (tableView ==_tableview) {return 100;} return 5;}-(UITableViewCell *) tableView :( UITableView *) tableView cellForRowAtIndexPath :( NSIndexPath *) indexPath {if (tableView ==_btntableview) {static NSString * cellName = @ "cellName"; UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier: cellName]; if (cell = nil) {cell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: cellName];} if (indexPath. row = 0) {cell. textLabel. text = @ ""; return cell;} cell. textLabel. text = @ "Gourmet"; cell. textLabel. textColor = [UIColor blackColor]; return cell;} else {static NSString * cellName = @ "cell"; UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier: cellName]; if (cell = nil) {cell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: cellName];} if (indexPath. row = 0) {cell. textLabel. text = @ ""; return cell;} cell. textLabel. text = @ "exercise"; cell. textLabel. textColor = [UIColor blackColor]; return cell ;}}-(void) tableView :( UITableView *) tableView didSelectRowAtIndexPath :( NSIndexPath *) indexPath {NSLog (@ "---- didSelectRowAtIndexPath ----"); if (tableView = _ tableView) {[UIView animateWithDuration: 0.7 animations: ^ {_ huiView. frame = CGRectMake (0, 45 + 45,320, self. view. bounds. size. height) ;}] ;}else {[UIView animateWithDuration: 0.7 animations: ^ {_ huiView. frame = CGRectMake (-320, 45 + 45,320, self. view. bounds. size. height) ;}] ;}}
In Excel, When you click a cell, a dialog box is displayed, showing the information of the currently selected cell. How can this problem be solved?
You cannot see
In general, you can set it in the input information of the Data validity.
A prompt is displayed after the annotation is added.
In EXCEL, an option window appears when you click a cell.
You can enter the first word. The list will only start with this word for you to choose from. Please take the problem as the content and sample table (NOTE: For version 03, show the status quo and target effect) as an attachment to view the yqch134@163.com, made to you