react-native-navigation的迁移库

RNNCustomViewController.m 400B

12345678910111213141516171819
  1. #import "RNNCustomViewController.h"
  2. @implementation RNNCustomViewController
  3. - (void)viewDidLoad {
  4. [super viewDidLoad];
  5. [self addTestLabel];
  6. }
  7. - (void)addTestLabel {
  8. UILabel* label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
  9. label.center = self.view.center;
  10. label.text = @"Test label";
  11. label.accessibilityIdentifier = @"TestLabel";
  12. [self.view addSubview:label];
  13. }
  14. @end