├── README.md ├── MHLXibToCodeDemo ├── MHLXibToCode.framework │ ├── _CodeSignature │ │ ├── CodeSignature │ │ ├── CodeDirectory │ │ ├── CodeRequirements │ │ ├── CodeRequirements-1 │ │ └── CodeResources │ ├── Info.plist │ ├── MHLXibToCode │ ├── Modules │ │ └── module.modulemap │ └── Headers │ │ ├── MHLXibToCode.h │ │ └── CodeGenerationEntry.h ├── Assets.xcassets │ ├── Contents.json │ ├── 9.imageset │ │ ├── 9.png │ │ ├── 9@2x.png │ │ ├── 9@3x.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── TastTableViewCell.h ├── ViewController.h ├── AppDelegate.h ├── main.m ├── TastTableViewCell.m ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.m ├── ViewController.m └── TastTableViewCell.xib ├── MHLXibToCodeDemo.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ └── mahongliang.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── xcuserdata │ └── mahongliang.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── project.pbxproj ├── MHLXibToCodeDemoTests ├── Info.plist └── MHLXibToCodeDemoTests.m └── MHLXibToCodeDemoUITests ├── Info.plist └── MHLXibToCodeDemoUITests.m /README.md: -------------------------------------------------------------------------------- 1 | # MHLXibToCodeDemo -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeSignature: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Assets.xcassets/9.imageset/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/Assets.xcassets/9.imageset/9.png -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Assets.xcassets/9.imageset/9@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/Assets.xcassets/9.imageset/9@2x.png -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Assets.xcassets/9.imageset/9@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/Assets.xcassets/9.imageset/9@3x.png -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/MHLXibToCode.framework/Info.plist -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/MHLXibToCode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/MHLXibToCode.framework/MHLXibToCode -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module MHLXibToCode { 2 | umbrella header "MHLXibToCode.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeDirectory: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeDirectory -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeRequirements: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeRequirements -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeRequirements-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeRequirements-1 -------------------------------------------------------------------------------- /MHLXibToCodeDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo.xcodeproj/project.xcworkspace/xcuserdata/mahongliang.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mahanyu0322/MHLXibToCodeDemo/HEAD/MHLXibToCodeDemo.xcodeproj/project.xcworkspace/xcuserdata/mahongliang.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /MHLXibToCodeDemo/TastTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // TastTableViewCell.h 3 | // xibTest 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TastTableViewCell : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // MHLXibToCodeDemo 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // MHLXibToCodeDemo 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MHLXibToCodeDemo 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Assets.xcassets/9.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "9.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "9@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "9@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /MHLXibToCodeDemo.xcodeproj/xcuserdata/mahongliang.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | MHLXibToCodeDemo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | MHLXibToCodeDemo.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/Headers/MHLXibToCode.h: -------------------------------------------------------------------------------- 1 | // 2 | // MHLXibToCode.h 3 | // MHLXibToCode 4 | // 5 | // Created by 马洪亮 on 2018/1/10. 6 | // Copyright © 2018年 马洪亮. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | //! Project version number for MHLXibToCode. 13 | FOUNDATION_EXPORT double MHLXibToCodeVersionNumber; 14 | 15 | //! Project version string for MHLXibToCode. 16 | FOUNDATION_EXPORT const unsigned char MHLXibToCodeVersionString[]; 17 | 18 | // In this header, you should import all the public headers of your framework using statements like #import 19 | #import "CodeGenerationEntry.h" 20 | 21 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/TastTableViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // TastTableViewCell.m 3 | // xibTest 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import "TastTableViewCell.h" 10 | #import 11 | @implementation TastTableViewCell 12 | 13 | - (void)awakeFromNib { 14 | 15 | [CodeGenerationEntry codeGenerationEntryfromCell:self.contentView]; 16 | 17 | [super awakeFromNib]; 18 | 19 | } 20 | 21 | 22 | 23 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 24 | [super setSelected:selected animated:animated]; 25 | 26 | // Configure the view for the selected state 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /MHLXibToCodeDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MHLXibToCodeDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/Headers/CodeGenerationEntry.h: -------------------------------------------------------------------------------- 1 | // 2 | // CodeGenerationEntry.h 3 | // xibTest 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/4. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | @class CodeGeneration; 12 | @class MethodsEncapsulate; 13 | 14 | @interface CodeGenerationEntry : NSObject 15 | 16 | ////// 会自动将xib 上的控件生成相应的代码,代码会保存在桌面自动生成的CodeThat文件夹内,有兴趣的小伙伴可以体验一下,因为在测试阶段,代码有些乱,功能有些不完善,有问题直接在加我QQ 656691922 我会及时改正,代码就先不开源了 17 | 18 | /** 19 | 将xib的Controller传入,生成代码 20 | 21 | @param view Controller 22 | @param isAutomatic 是否自动生成类名 YES 自动生成(如果想自己命名相关的层级及命名可选NO)建议填NO 自己命名,因为自动命名采用的是逻辑递增命名的 看着会比较乱~ 23 | */ 24 | + (void)codeGenerationEntryfromClass:(UIViewController *)view automaticGenerationHierarchy:(BOOL)isAutomatic; 25 | 26 | 27 | /** 28 | 针对Cell上的控件的代码生成,因为cell上的控件重用问题,用逻辑递增命名会超出预定命名数组的边界,所有需要使用者自己命名 29 | 30 | @param view 传入 self.contentView 31 | */ 32 | + (void)codeGenerationEntryfromCell:(UIView *)view; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /MHLXibToCodeDemoTests/MHLXibToCodeDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHLXibToCodeDemoTests.m 3 | // MHLXibToCodeDemoTests 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MHLXibToCodeDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation MHLXibToCodeDemoTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /MHLXibToCodeDemoUITests/MHLXibToCodeDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // MHLXibToCodeDemoUITests.m 3 | // MHLXibToCodeDemoUITests 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MHLXibToCodeDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation MHLXibToCodeDemoUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /MHLXibToCodeDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // MHLXibToCodeDemo 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/11. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // xibTest 4 | // 5 | // Created by Sephiroth_Ma on 2018/1/1. 6 | // Copyright © 2018年 Sephiroth_Ma. All rights reserved. 7 | //first second third fourth fifth sixth seventh eighth ninth tenth 8 | 9 | #import "ViewController.h" 10 | 11 | #import 12 | 13 | #import "TastTableViewCell.h" 14 | 15 | @interface ViewController () { 16 | 17 | 18 | BOOL isHaveTableView; 19 | 20 | } 21 | @property(nonatomic, strong) NSMutableArray *dataArray; 22 | 23 | @property (weak, nonatomic) IBOutlet UITableView *tabView; 24 | 25 | @property(nonatomic, strong) NSString *buttonName; 26 | 27 | @end 28 | 29 | @implementation ViewController 30 | 31 | 32 | 33 | 34 | - (void)viewDidLoad { 35 | 36 | [super viewDidLoad]; 37 | 38 | self.tabView.delegate = self; 39 | 40 | self.tabView.dataSource = self; 41 | 42 | // //层级:1,父视图:UIView 的UITableView 43 | // UITableView *firstTableViewInOne =[[UITableView alloc]initWithFrame:CGRectMake(7.00f, 20.00f, 360.00f,502.00f) style:UITableViewStylePlain]; 44 | // firstTableViewInOne.rowHeight =-1.00f; 45 | // firstTableViewInOne.delegate =self; 46 | // firstTableViewInOne.dataSource =self; 47 | // [self.view addSubview:firstTableViewInOne]; 48 | // 49 | if (@available(iOS 11.0, *)) { 50 | self.tabView.contentInsetAdjustmentBehavior =UIScrollViewContentInsetAdjustmentNever; 51 | } else { 52 | self.automaticallyAdjustsScrollViewInsets = NO; 53 | } 54 | // 55 | [self.tabView registerNib:[UINib nibWithNibName:@"TastTableViewCell" bundle:nil] forCellReuseIdentifier:@"CELL"]; 56 | 57 | [CodeGenerationEntry codeGenerationEntryfromClass:self automaticGenerationHierarchy:NO]; 58 | 59 | } 60 | 61 | - (UIView *)tableView:(nonnull UITableView *)tableView viewForHeaderInSection:(NSInteger)section // 添加每组的组头 62 | { 63 | 64 | return [[UIView alloc]init]; 65 | } 66 | - (UIView *)tableView:(nonnull UITableView *)tableView viewForFooterInSection:(NSInteger)section// 返回每组的组尾 67 | { 68 | 69 | return [[UIView alloc]init]; 70 | } 71 | 72 | - (CGFloat)tableView:(nonnull UITableView *)tableView heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath{ 73 | 74 | return 170; 75 | 76 | } 77 | - (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ 78 | 79 | return 10; 80 | 81 | } 82 | 83 | - (UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath{ 84 | 85 | TastTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"]; 86 | 87 | 88 | return cell; 89 | 90 | 91 | 92 | } 93 | 94 | @end 95 | 96 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/MHLXibToCode.framework/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Headers/CodeGenerationEntry.h 8 | 9 | glI6MzE7XRjZ3PMXcwTgoAhDho8= 10 | 11 | Headers/MHLXibToCode.h 12 | 13 | QeIaJzQuYgFpIoUjP6j67t3vvxk= 14 | 15 | Info.plist 16 | 17 | Dz8N1SxJSpblnQzoQGivb9wnrhQ= 18 | 19 | Modules/module.modulemap 20 | 21 | IF5Jx5BROoSE9Ggo1J5AD+65L6w= 22 | 23 | 24 | files2 25 | 26 | Headers/CodeGenerationEntry.h 27 | 28 | hash 29 | 30 | glI6MzE7XRjZ3PMXcwTgoAhDho8= 31 | 32 | hash2 33 | 34 | T2GcsvB9soK3SxDZk1YXNL3SgaQXWKyfWF9QTRIZYzA= 35 | 36 | 37 | Headers/MHLXibToCode.h 38 | 39 | hash 40 | 41 | QeIaJzQuYgFpIoUjP6j67t3vvxk= 42 | 43 | hash2 44 | 45 | H1Sd8DEIHx2dCBrUimW6Xzi5n43hrTPYEDfnfvrFtUc= 46 | 47 | 48 | Modules/module.modulemap 49 | 50 | hash 51 | 52 | IF5Jx5BROoSE9Ggo1J5AD+65L6w= 53 | 54 | hash2 55 | 56 | rYdxWSIlQuUT6ql52bSWmn5NGJhpMT6SkaW/h1mBUxY= 57 | 58 | 59 | 60 | rules 61 | 62 | ^ 63 | 64 | ^.*\.lproj/ 65 | 66 | optional 67 | 68 | weight 69 | 1000 70 | 71 | ^.*\.lproj/locversion.plist$ 72 | 73 | omit 74 | 75 | weight 76 | 1100 77 | 78 | ^Base\.lproj/ 79 | 80 | weight 81 | 1010 82 | 83 | ^version.plist$ 84 | 85 | 86 | rules2 87 | 88 | .*\.dSYM($|/) 89 | 90 | weight 91 | 11 92 | 93 | ^ 94 | 95 | weight 96 | 20 97 | 98 | ^(.*/)?\.DS_Store$ 99 | 100 | omit 101 | 102 | weight 103 | 2000 104 | 105 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 106 | 107 | nested 108 | 109 | weight 110 | 10 111 | 112 | ^.* 113 | 114 | ^.*\.lproj/ 115 | 116 | optional 117 | 118 | weight 119 | 1000 120 | 121 | ^.*\.lproj/locversion.plist$ 122 | 123 | omit 124 | 125 | weight 126 | 1100 127 | 128 | ^Base\.lproj/ 129 | 130 | weight 131 | 1010 132 | 133 | ^Info\.plist$ 134 | 135 | omit 136 | 137 | weight 138 | 20 139 | 140 | ^PkgInfo$ 141 | 142 | omit 143 | 144 | weight 145 | 20 146 | 147 | ^[^/]+$ 148 | 149 | nested 150 | 151 | weight 152 | 10 153 | 154 | ^embedded\.provisionprofile$ 155 | 156 | weight 157 | 20 158 | 159 | ^version\.plist$ 160 | 161 | weight 162 | 20 163 | 164 | 165 | 166 | 167 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/TastTableViewCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 33 | 34 | 35 | 36 | 43 | 50 | 57 | 64 | 71 | 78 | 85 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F05AF04F20076C83004D5075 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F05AF04E20076C83004D5075 /* AppDelegate.m */; }; 11 | F05AF05220076C83004D5075 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F05AF05120076C83004D5075 /* ViewController.m */; }; 12 | F05AF05520076C83004D5075 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F05AF05320076C83004D5075 /* Main.storyboard */; }; 13 | F05AF05720076C83004D5075 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F05AF05620076C83004D5075 /* Assets.xcassets */; }; 14 | F05AF05A20076C83004D5075 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F05AF05820076C83004D5075 /* LaunchScreen.storyboard */; }; 15 | F05AF05D20076C83004D5075 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F05AF05C20076C83004D5075 /* main.m */; }; 16 | F05AF06720076C84004D5075 /* MHLXibToCodeDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F05AF06620076C84004D5075 /* MHLXibToCodeDemoTests.m */; }; 17 | F05AF07220076C84004D5075 /* MHLXibToCodeDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = F05AF07120076C84004D5075 /* MHLXibToCodeDemoUITests.m */; }; 18 | F05AF08020076DF0004D5075 /* MHLXibToCode.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F05AF07F20076DF0004D5075 /* MHLXibToCode.framework */; }; 19 | F05AF08420076E19004D5075 /* TastTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F05AF08220076E18004D5075 /* TastTableViewCell.xib */; }; 20 | F05AF08520076E19004D5075 /* TastTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = F05AF08320076E18004D5075 /* TastTableViewCell.m */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | F05AF06320076C84004D5075 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = F05AF04220076C83004D5075 /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = F05AF04920076C83004D5075; 29 | remoteInfo = MHLXibToCodeDemo; 30 | }; 31 | F05AF06E20076C84004D5075 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = F05AF04220076C83004D5075 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = F05AF04920076C83004D5075; 36 | remoteInfo = MHLXibToCodeDemo; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | F05AF04A20076C83004D5075 /* MHLXibToCodeDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MHLXibToCodeDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | F05AF04D20076C83004D5075 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 43 | F05AF04E20076C83004D5075 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 44 | F05AF05020076C83004D5075 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 45 | F05AF05120076C83004D5075 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 46 | F05AF05420076C83004D5075 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 47 | F05AF05620076C83004D5075 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 48 | F05AF05920076C83004D5075 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 49 | F05AF05B20076C83004D5075 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | F05AF05C20076C83004D5075 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 51 | F05AF06220076C84004D5075 /* MHLXibToCodeDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MHLXibToCodeDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | F05AF06620076C84004D5075 /* MHLXibToCodeDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MHLXibToCodeDemoTests.m; sourceTree = ""; }; 53 | F05AF06820076C84004D5075 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | F05AF06D20076C84004D5075 /* MHLXibToCodeDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MHLXibToCodeDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | F05AF07120076C84004D5075 /* MHLXibToCodeDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MHLXibToCodeDemoUITests.m; sourceTree = ""; }; 56 | F05AF07320076C84004D5075 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | F05AF07F20076DF0004D5075 /* MHLXibToCode.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MHLXibToCode.framework; sourceTree = ""; }; 58 | F05AF08120076E18004D5075 /* TastTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TastTableViewCell.h; sourceTree = ""; }; 59 | F05AF08220076E18004D5075 /* TastTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TastTableViewCell.xib; sourceTree = ""; }; 60 | F05AF08320076E18004D5075 /* TastTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TastTableViewCell.m; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | F05AF04720076C83004D5075 /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | F05AF08020076DF0004D5075 /* MHLXibToCode.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | F05AF05F20076C84004D5075 /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | F05AF06A20076C84004D5075 /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | ); 84 | runOnlyForDeploymentPostprocessing = 0; 85 | }; 86 | /* End PBXFrameworksBuildPhase section */ 87 | 88 | /* Begin PBXGroup section */ 89 | F05AF04120076C83004D5075 = { 90 | isa = PBXGroup; 91 | children = ( 92 | F05AF04C20076C83004D5075 /* MHLXibToCodeDemo */, 93 | F05AF06520076C84004D5075 /* MHLXibToCodeDemoTests */, 94 | F05AF07020076C84004D5075 /* MHLXibToCodeDemoUITests */, 95 | F05AF04B20076C83004D5075 /* Products */, 96 | ); 97 | sourceTree = ""; 98 | }; 99 | F05AF04B20076C83004D5075 /* Products */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | F05AF04A20076C83004D5075 /* MHLXibToCodeDemo.app */, 103 | F05AF06220076C84004D5075 /* MHLXibToCodeDemoTests.xctest */, 104 | F05AF06D20076C84004D5075 /* MHLXibToCodeDemoUITests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | F05AF04C20076C83004D5075 /* MHLXibToCodeDemo */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | F05AF07F20076DF0004D5075 /* MHLXibToCode.framework */, 113 | F05AF04D20076C83004D5075 /* AppDelegate.h */, 114 | F05AF04E20076C83004D5075 /* AppDelegate.m */, 115 | F05AF05020076C83004D5075 /* ViewController.h */, 116 | F05AF05120076C83004D5075 /* ViewController.m */, 117 | F05AF08120076E18004D5075 /* TastTableViewCell.h */, 118 | F05AF08320076E18004D5075 /* TastTableViewCell.m */, 119 | F05AF08220076E18004D5075 /* TastTableViewCell.xib */, 120 | F05AF05320076C83004D5075 /* Main.storyboard */, 121 | F05AF05620076C83004D5075 /* Assets.xcassets */, 122 | F05AF05820076C83004D5075 /* LaunchScreen.storyboard */, 123 | F05AF05B20076C83004D5075 /* Info.plist */, 124 | F05AF05C20076C83004D5075 /* main.m */, 125 | ); 126 | path = MHLXibToCodeDemo; 127 | sourceTree = ""; 128 | }; 129 | F05AF06520076C84004D5075 /* MHLXibToCodeDemoTests */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | F05AF06620076C84004D5075 /* MHLXibToCodeDemoTests.m */, 133 | F05AF06820076C84004D5075 /* Info.plist */, 134 | ); 135 | path = MHLXibToCodeDemoTests; 136 | sourceTree = ""; 137 | }; 138 | F05AF07020076C84004D5075 /* MHLXibToCodeDemoUITests */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | F05AF07120076C84004D5075 /* MHLXibToCodeDemoUITests.m */, 142 | F05AF07320076C84004D5075 /* Info.plist */, 143 | ); 144 | path = MHLXibToCodeDemoUITests; 145 | sourceTree = ""; 146 | }; 147 | /* End PBXGroup section */ 148 | 149 | /* Begin PBXNativeTarget section */ 150 | F05AF04920076C83004D5075 /* MHLXibToCodeDemo */ = { 151 | isa = PBXNativeTarget; 152 | buildConfigurationList = F05AF07620076C84004D5075 /* Build configuration list for PBXNativeTarget "MHLXibToCodeDemo" */; 153 | buildPhases = ( 154 | F05AF04620076C83004D5075 /* Sources */, 155 | F05AF04720076C83004D5075 /* Frameworks */, 156 | F05AF04820076C83004D5075 /* Resources */, 157 | ); 158 | buildRules = ( 159 | ); 160 | dependencies = ( 161 | ); 162 | name = MHLXibToCodeDemo; 163 | productName = MHLXibToCodeDemo; 164 | productReference = F05AF04A20076C83004D5075 /* MHLXibToCodeDemo.app */; 165 | productType = "com.apple.product-type.application"; 166 | }; 167 | F05AF06120076C84004D5075 /* MHLXibToCodeDemoTests */ = { 168 | isa = PBXNativeTarget; 169 | buildConfigurationList = F05AF07920076C84004D5075 /* Build configuration list for PBXNativeTarget "MHLXibToCodeDemoTests" */; 170 | buildPhases = ( 171 | F05AF05E20076C84004D5075 /* Sources */, 172 | F05AF05F20076C84004D5075 /* Frameworks */, 173 | F05AF06020076C84004D5075 /* Resources */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | F05AF06420076C84004D5075 /* PBXTargetDependency */, 179 | ); 180 | name = MHLXibToCodeDemoTests; 181 | productName = MHLXibToCodeDemoTests; 182 | productReference = F05AF06220076C84004D5075 /* MHLXibToCodeDemoTests.xctest */; 183 | productType = "com.apple.product-type.bundle.unit-test"; 184 | }; 185 | F05AF06C20076C84004D5075 /* MHLXibToCodeDemoUITests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = F05AF07C20076C84004D5075 /* Build configuration list for PBXNativeTarget "MHLXibToCodeDemoUITests" */; 188 | buildPhases = ( 189 | F05AF06920076C84004D5075 /* Sources */, 190 | F05AF06A20076C84004D5075 /* Frameworks */, 191 | F05AF06B20076C84004D5075 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | F05AF06F20076C84004D5075 /* PBXTargetDependency */, 197 | ); 198 | name = MHLXibToCodeDemoUITests; 199 | productName = MHLXibToCodeDemoUITests; 200 | productReference = F05AF06D20076C84004D5075 /* MHLXibToCodeDemoUITests.xctest */; 201 | productType = "com.apple.product-type.bundle.ui-testing"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | F05AF04220076C83004D5075 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastUpgradeCheck = 0920; 210 | ORGANIZATIONNAME = "马洪亮"; 211 | TargetAttributes = { 212 | F05AF04920076C83004D5075 = { 213 | CreatedOnToolsVersion = 9.2; 214 | ProvisioningStyle = Automatic; 215 | }; 216 | F05AF06120076C84004D5075 = { 217 | CreatedOnToolsVersion = 9.2; 218 | ProvisioningStyle = Automatic; 219 | TestTargetID = F05AF04920076C83004D5075; 220 | }; 221 | F05AF06C20076C84004D5075 = { 222 | CreatedOnToolsVersion = 9.2; 223 | ProvisioningStyle = Automatic; 224 | TestTargetID = F05AF04920076C83004D5075; 225 | }; 226 | }; 227 | }; 228 | buildConfigurationList = F05AF04520076C83004D5075 /* Build configuration list for PBXProject "MHLXibToCodeDemo" */; 229 | compatibilityVersion = "Xcode 8.0"; 230 | developmentRegion = en; 231 | hasScannedForEncodings = 0; 232 | knownRegions = ( 233 | en, 234 | Base, 235 | ); 236 | mainGroup = F05AF04120076C83004D5075; 237 | productRefGroup = F05AF04B20076C83004D5075 /* Products */; 238 | projectDirPath = ""; 239 | projectRoot = ""; 240 | targets = ( 241 | F05AF04920076C83004D5075 /* MHLXibToCodeDemo */, 242 | F05AF06120076C84004D5075 /* MHLXibToCodeDemoTests */, 243 | F05AF06C20076C84004D5075 /* MHLXibToCodeDemoUITests */, 244 | ); 245 | }; 246 | /* End PBXProject section */ 247 | 248 | /* Begin PBXResourcesBuildPhase section */ 249 | F05AF04820076C83004D5075 /* Resources */ = { 250 | isa = PBXResourcesBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | F05AF05A20076C83004D5075 /* LaunchScreen.storyboard in Resources */, 254 | F05AF08420076E19004D5075 /* TastTableViewCell.xib in Resources */, 255 | F05AF05720076C83004D5075 /* Assets.xcassets in Resources */, 256 | F05AF05520076C83004D5075 /* Main.storyboard in Resources */, 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | F05AF06020076C84004D5075 /* Resources */ = { 261 | isa = PBXResourcesBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | F05AF06B20076C84004D5075 /* Resources */ = { 268 | isa = PBXResourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | /* End PBXResourcesBuildPhase section */ 275 | 276 | /* Begin PBXSourcesBuildPhase section */ 277 | F05AF04620076C83004D5075 /* Sources */ = { 278 | isa = PBXSourcesBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | F05AF05220076C83004D5075 /* ViewController.m in Sources */, 282 | F05AF08520076E19004D5075 /* TastTableViewCell.m in Sources */, 283 | F05AF05D20076C83004D5075 /* main.m in Sources */, 284 | F05AF04F20076C83004D5075 /* AppDelegate.m in Sources */, 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | }; 288 | F05AF05E20076C84004D5075 /* Sources */ = { 289 | isa = PBXSourcesBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | F05AF06720076C84004D5075 /* MHLXibToCodeDemoTests.m in Sources */, 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | }; 296 | F05AF06920076C84004D5075 /* Sources */ = { 297 | isa = PBXSourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | F05AF07220076C84004D5075 /* MHLXibToCodeDemoUITests.m in Sources */, 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | /* End PBXSourcesBuildPhase section */ 305 | 306 | /* Begin PBXTargetDependency section */ 307 | F05AF06420076C84004D5075 /* PBXTargetDependency */ = { 308 | isa = PBXTargetDependency; 309 | target = F05AF04920076C83004D5075 /* MHLXibToCodeDemo */; 310 | targetProxy = F05AF06320076C84004D5075 /* PBXContainerItemProxy */; 311 | }; 312 | F05AF06F20076C84004D5075 /* PBXTargetDependency */ = { 313 | isa = PBXTargetDependency; 314 | target = F05AF04920076C83004D5075 /* MHLXibToCodeDemo */; 315 | targetProxy = F05AF06E20076C84004D5075 /* PBXContainerItemProxy */; 316 | }; 317 | /* End PBXTargetDependency section */ 318 | 319 | /* Begin PBXVariantGroup section */ 320 | F05AF05320076C83004D5075 /* Main.storyboard */ = { 321 | isa = PBXVariantGroup; 322 | children = ( 323 | F05AF05420076C83004D5075 /* Base */, 324 | ); 325 | name = Main.storyboard; 326 | sourceTree = ""; 327 | }; 328 | F05AF05820076C83004D5075 /* LaunchScreen.storyboard */ = { 329 | isa = PBXVariantGroup; 330 | children = ( 331 | F05AF05920076C83004D5075 /* Base */, 332 | ); 333 | name = LaunchScreen.storyboard; 334 | sourceTree = ""; 335 | }; 336 | /* End PBXVariantGroup section */ 337 | 338 | /* Begin XCBuildConfiguration section */ 339 | F05AF07420076C84004D5075 /* Debug */ = { 340 | isa = XCBuildConfiguration; 341 | buildSettings = { 342 | ALWAYS_SEARCH_USER_PATHS = NO; 343 | CLANG_ANALYZER_NONNULL = YES; 344 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 345 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 346 | CLANG_CXX_LIBRARY = "libc++"; 347 | CLANG_ENABLE_MODULES = YES; 348 | CLANG_ENABLE_OBJC_ARC = YES; 349 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 350 | CLANG_WARN_BOOL_CONVERSION = YES; 351 | CLANG_WARN_COMMA = YES; 352 | CLANG_WARN_CONSTANT_CONVERSION = YES; 353 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 354 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 355 | CLANG_WARN_EMPTY_BODY = YES; 356 | CLANG_WARN_ENUM_CONVERSION = YES; 357 | CLANG_WARN_INFINITE_RECURSION = YES; 358 | CLANG_WARN_INT_CONVERSION = YES; 359 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 360 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 361 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 362 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 363 | CLANG_WARN_STRICT_PROTOTYPES = YES; 364 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 365 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 366 | CLANG_WARN_UNREACHABLE_CODE = YES; 367 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 368 | CODE_SIGN_IDENTITY = "iPhone Developer"; 369 | COPY_PHASE_STRIP = NO; 370 | DEBUG_INFORMATION_FORMAT = dwarf; 371 | ENABLE_STRICT_OBJC_MSGSEND = YES; 372 | ENABLE_TESTABILITY = YES; 373 | GCC_C_LANGUAGE_STANDARD = gnu11; 374 | GCC_DYNAMIC_NO_PIC = NO; 375 | GCC_NO_COMMON_BLOCKS = YES; 376 | GCC_OPTIMIZATION_LEVEL = 0; 377 | GCC_PREPROCESSOR_DEFINITIONS = ( 378 | "DEBUG=1", 379 | "$(inherited)", 380 | ); 381 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 382 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 383 | GCC_WARN_UNDECLARED_SELECTOR = YES; 384 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 385 | GCC_WARN_UNUSED_FUNCTION = YES; 386 | GCC_WARN_UNUSED_VARIABLE = YES; 387 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 388 | MTL_ENABLE_DEBUG_INFO = YES; 389 | ONLY_ACTIVE_ARCH = YES; 390 | SDKROOT = iphoneos; 391 | }; 392 | name = Debug; 393 | }; 394 | F05AF07520076C84004D5075 /* Release */ = { 395 | isa = XCBuildConfiguration; 396 | buildSettings = { 397 | ALWAYS_SEARCH_USER_PATHS = NO; 398 | CLANG_ANALYZER_NONNULL = YES; 399 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 400 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 401 | CLANG_CXX_LIBRARY = "libc++"; 402 | CLANG_ENABLE_MODULES = YES; 403 | CLANG_ENABLE_OBJC_ARC = YES; 404 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 405 | CLANG_WARN_BOOL_CONVERSION = YES; 406 | CLANG_WARN_COMMA = YES; 407 | CLANG_WARN_CONSTANT_CONVERSION = YES; 408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 409 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 410 | CLANG_WARN_EMPTY_BODY = YES; 411 | CLANG_WARN_ENUM_CONVERSION = YES; 412 | CLANG_WARN_INFINITE_RECURSION = YES; 413 | CLANG_WARN_INT_CONVERSION = YES; 414 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 415 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 416 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 417 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 418 | CLANG_WARN_STRICT_PROTOTYPES = YES; 419 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 420 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 421 | CLANG_WARN_UNREACHABLE_CODE = YES; 422 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 423 | CODE_SIGN_IDENTITY = "iPhone Developer"; 424 | COPY_PHASE_STRIP = NO; 425 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 426 | ENABLE_NS_ASSERTIONS = NO; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | GCC_C_LANGUAGE_STANDARD = gnu11; 429 | GCC_NO_COMMON_BLOCKS = YES; 430 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 431 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 432 | GCC_WARN_UNDECLARED_SELECTOR = YES; 433 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 434 | GCC_WARN_UNUSED_FUNCTION = YES; 435 | GCC_WARN_UNUSED_VARIABLE = YES; 436 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 437 | MTL_ENABLE_DEBUG_INFO = NO; 438 | SDKROOT = iphoneos; 439 | VALIDATE_PRODUCT = YES; 440 | }; 441 | name = Release; 442 | }; 443 | F05AF07720076C84004D5075 /* Debug */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 447 | CODE_SIGN_STYLE = Automatic; 448 | DEVELOPMENT_TEAM = WN2JX495T5; 449 | FRAMEWORK_SEARCH_PATHS = ( 450 | "$(inherited)", 451 | "$(PROJECT_DIR)/MHLXibToCodeDemo", 452 | ); 453 | INFOPLIST_FILE = MHLXibToCodeDemo/Info.plist; 454 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 455 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 456 | PRODUCT_BUNDLE_IDENTIFIER = com.lexiangqiaobao.www.MHLXibToCodeDemo; 457 | PRODUCT_NAME = "$(TARGET_NAME)"; 458 | TARGETED_DEVICE_FAMILY = "1,2"; 459 | }; 460 | name = Debug; 461 | }; 462 | F05AF07820076C84004D5075 /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 466 | CODE_SIGN_STYLE = Automatic; 467 | DEVELOPMENT_TEAM = WN2JX495T5; 468 | FRAMEWORK_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "$(PROJECT_DIR)/MHLXibToCodeDemo", 471 | ); 472 | INFOPLIST_FILE = MHLXibToCodeDemo/Info.plist; 473 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 475 | PRODUCT_BUNDLE_IDENTIFIER = com.lexiangqiaobao.www.MHLXibToCodeDemo; 476 | PRODUCT_NAME = "$(TARGET_NAME)"; 477 | TARGETED_DEVICE_FAMILY = "1,2"; 478 | }; 479 | name = Release; 480 | }; 481 | F05AF07A20076C84004D5075 /* Debug */ = { 482 | isa = XCBuildConfiguration; 483 | buildSettings = { 484 | BUNDLE_LOADER = "$(TEST_HOST)"; 485 | CODE_SIGN_STYLE = Automatic; 486 | DEVELOPMENT_TEAM = WN2JX495T5; 487 | INFOPLIST_FILE = MHLXibToCodeDemoTests/Info.plist; 488 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 489 | PRODUCT_BUNDLE_IDENTIFIER = com.lexiangqiaobao.www.MHLXibToCodeDemoTests; 490 | PRODUCT_NAME = "$(TARGET_NAME)"; 491 | TARGETED_DEVICE_FAMILY = "1,2"; 492 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MHLXibToCodeDemo.app/MHLXibToCodeDemo"; 493 | }; 494 | name = Debug; 495 | }; 496 | F05AF07B20076C84004D5075 /* Release */ = { 497 | isa = XCBuildConfiguration; 498 | buildSettings = { 499 | BUNDLE_LOADER = "$(TEST_HOST)"; 500 | CODE_SIGN_STYLE = Automatic; 501 | DEVELOPMENT_TEAM = WN2JX495T5; 502 | INFOPLIST_FILE = MHLXibToCodeDemoTests/Info.plist; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 504 | PRODUCT_BUNDLE_IDENTIFIER = com.lexiangqiaobao.www.MHLXibToCodeDemoTests; 505 | PRODUCT_NAME = "$(TARGET_NAME)"; 506 | TARGETED_DEVICE_FAMILY = "1,2"; 507 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MHLXibToCodeDemo.app/MHLXibToCodeDemo"; 508 | }; 509 | name = Release; 510 | }; 511 | F05AF07D20076C84004D5075 /* Debug */ = { 512 | isa = XCBuildConfiguration; 513 | buildSettings = { 514 | CODE_SIGN_STYLE = Automatic; 515 | DEVELOPMENT_TEAM = WN2JX495T5; 516 | INFOPLIST_FILE = MHLXibToCodeDemoUITests/Info.plist; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 518 | PRODUCT_BUNDLE_IDENTIFIER = com.lexiangqiaobao.www.MHLXibToCodeDemoUITests; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | TARGETED_DEVICE_FAMILY = "1,2"; 521 | TEST_TARGET_NAME = MHLXibToCodeDemo; 522 | }; 523 | name = Debug; 524 | }; 525 | F05AF07E20076C84004D5075 /* Release */ = { 526 | isa = XCBuildConfiguration; 527 | buildSettings = { 528 | CODE_SIGN_STYLE = Automatic; 529 | DEVELOPMENT_TEAM = WN2JX495T5; 530 | INFOPLIST_FILE = MHLXibToCodeDemoUITests/Info.plist; 531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 532 | PRODUCT_BUNDLE_IDENTIFIER = com.lexiangqiaobao.www.MHLXibToCodeDemoUITests; 533 | PRODUCT_NAME = "$(TARGET_NAME)"; 534 | TARGETED_DEVICE_FAMILY = "1,2"; 535 | TEST_TARGET_NAME = MHLXibToCodeDemo; 536 | }; 537 | name = Release; 538 | }; 539 | /* End XCBuildConfiguration section */ 540 | 541 | /* Begin XCConfigurationList section */ 542 | F05AF04520076C83004D5075 /* Build configuration list for PBXProject "MHLXibToCodeDemo" */ = { 543 | isa = XCConfigurationList; 544 | buildConfigurations = ( 545 | F05AF07420076C84004D5075 /* Debug */, 546 | F05AF07520076C84004D5075 /* Release */, 547 | ); 548 | defaultConfigurationIsVisible = 0; 549 | defaultConfigurationName = Release; 550 | }; 551 | F05AF07620076C84004D5075 /* Build configuration list for PBXNativeTarget "MHLXibToCodeDemo" */ = { 552 | isa = XCConfigurationList; 553 | buildConfigurations = ( 554 | F05AF07720076C84004D5075 /* Debug */, 555 | F05AF07820076C84004D5075 /* Release */, 556 | ); 557 | defaultConfigurationIsVisible = 0; 558 | defaultConfigurationName = Release; 559 | }; 560 | F05AF07920076C84004D5075 /* Build configuration list for PBXNativeTarget "MHLXibToCodeDemoTests" */ = { 561 | isa = XCConfigurationList; 562 | buildConfigurations = ( 563 | F05AF07A20076C84004D5075 /* Debug */, 564 | F05AF07B20076C84004D5075 /* Release */, 565 | ); 566 | defaultConfigurationIsVisible = 0; 567 | defaultConfigurationName = Release; 568 | }; 569 | F05AF07C20076C84004D5075 /* Build configuration list for PBXNativeTarget "MHLXibToCodeDemoUITests" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | F05AF07D20076C84004D5075 /* Debug */, 573 | F05AF07E20076C84004D5075 /* Release */, 574 | ); 575 | defaultConfigurationIsVisible = 0; 576 | defaultConfigurationName = Release; 577 | }; 578 | /* End XCConfigurationList section */ 579 | }; 580 | rootObject = F05AF04220076C83004D5075 /* Project object */; 581 | } 582 | -------------------------------------------------------------------------------- /MHLXibToCodeDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 36 | 37 | 38 | 39 | 40 | 47 | 52 | 59 | 66 | 73 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 123 | 130 | 137 | 144 | 151 | 158 | 165 | 166 | 167 | 168 | 169 | 176 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 215 | 222 | 229 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | --------------------------------------------------------------------------------