#import "IWViewController.h" #import "IWComponent.h" @interface IWViewController () @end @implementation IWViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSString * email = @"fan@iw.com"; BOOL isEmail = [IWNStringRegex isValidEmail:email]; NSLog(@"是否是邮箱:%d", isEmail); } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. }
# # Be sure to run `pod lib lint component-test.podspec' to ensure this is a # valid spec before submitting. # # Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = 'component-test' s.version = '0.1.0' s.summary = '组件的简介' # This description is used to generate tags and improve search results. # * Think: What does it do? Why did you write it? What is the focus? # * Try to keep it short, snappy and to the point. # * Write the description between the DESC delimiters below. # * Finally, don't worry about the indent, CocoaPods strips it! s.description = <<-DESC 组件的详细描述 DESC # s.homepage 作者主页地址 s.homepage = 'https://gitee.com/linyoumu' # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' #license 开源协议 s.license = { :type => 'MIT', :file => 'LICENSE' } # author 作者信息 s.author = { 'wangtaiju' => 'wang.taiju@iwhalecloud.com' } # source 组件地址,需要组件的git远程仓库地址一致 s.source = { :git => 'git@gitee.com:linyoumu/component-test.git', :tag => s.version.to_s } # s.social_media_url = 'https://twitter.com/' # ios.deployment_target 平台和运行最低系统 s.ios.deployment_target = '10.0' # source_files 组件源代码路径 s.source_files = 'component-test/Classes/**/*' # resource_bundles 组件所需资源路径,如图片 # s.resource_bundles = { # 'component-test' => ['component-test/Assets/*.png'] # } # public_header_files 对外公开的头文件 s.public_header_files = 'Pod/Classes/IWComponent.h' # s.frameworks = 'UIKit', 'MapKit' # dependency 依赖的第三方库 # s.dependency 'AFNetworking', '~> 2.3' end