CityItem.m 491 B

12345678910111213141516171819202122232425262728
  1. //
  2. // CityItem.m
  3. // ChinaCityList
  4. //
  5. // Created by zjq on 15/10/27.
  6. // Copyright © 2015年 zhengjq. All rights reserved.
  7. //
  8. #import "CityItem.h"
  9. @implementation CityItem
  10. - (instancetype)initWithTitleName:(NSString *)titleName {
  11. if (self = [super init]) {
  12. self.titleName = [NSString stringWithFormat:@"%@",titleName];
  13. }
  14. return self;
  15. }
  16. + (instancetype)initWithTitleName:(NSString *)titleName {
  17. return [[self alloc] initWithTitleName:titleName];
  18. }
  19. @end