TemplateInfo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. data/.DS_Store +0 -0
  2. data/.gitignore +2 -0
  3. data/TemplateInfo.gemspec +1 -1
  4. data/bin/tif_create.rb +157 -0
  5. data/lib/TemplateInfo/version.rb +1 -1
  6. data/test.xctemplate/.DS_Store +0 -0
  7. data/test.xctemplate/TemplateInfo.plist +2830 -0
  8. data/test.xctemplate/TemplateInfo.xml +2842 -0
  9. data/test.xctemplate/libs/BeeFramework/Bee.h +35 -0
  10. data/test.xctemplate/libs/BeeFramework/Bee_Precompile.h +143 -0
  11. data/test.xctemplate/libs/BeeFramework/Core/Bee_Core.h +36 -0
  12. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Foundation.h +54 -0
  13. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Foundation.mm +33 -0
  14. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Log.h +64 -0
  15. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Log.mm +164 -0
  16. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Performance.h +111 -0
  17. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Performance.mm +122 -0
  18. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Runtime.h +98 -0
  19. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Runtime.mm +437 -0
  20. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Sandbox.h +45 -0
  21. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Sandbox.mm +81 -0
  22. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Singleton.h +47 -0
  23. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Singleton.mm +34 -0
  24. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_SystemInfo.h +62 -0
  25. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_SystemInfo.m +147 -0
  26. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Thread.h +64 -0
  27. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Bee_Thread.mm +91 -0
  28. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSArray+BeeExtension.h +76 -0
  29. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSArray+BeeExtension.m +300 -0
  30. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.h +44 -0
  31. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSData+BeeExtension.m +92 -0
  32. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.h +44 -0
  33. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDate+BeeExtension.m +85 -0
  34. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDictionary+BeeExtension.h +90 -0
  35. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSDictionary+BeeExtension.m +509 -0
  36. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.h +50 -0
  37. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSNumber+BeeExtension.m +64 -0
  38. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.h +43 -0
  39. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeJSON.m +116 -0
  40. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeNotification.h +66 -0
  41. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeNotification.m +150 -0
  42. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.h +210 -0
  43. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeProperty.m +34 -0
  44. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.h +41 -0
  45. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTicker.m +156 -0
  46. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.h +49 -0
  47. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSObject+BeeTypeConversion.m +109 -0
  48. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSString+BeeExtension.h +86 -0
  49. data/test.xctemplate/libs/BeeFramework/Core/Foundation/Extension/NSString+BeeExtension.m +464 -0
  50. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Network.h +36 -0
  51. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Network.m +33 -0
  52. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Request.h +144 -0
  53. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_Request.m +560 -0
  54. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_RequestQueue.h +99 -0
  55. data/test.xctemplate/libs/BeeFramework/Core/Network/Bee_RequestQueue.m +742 -0
  56. data/test.xctemplate/libs/BeeFramework/Core/Network/Extension/NSObject+BeeRequest.h +62 -0
  57. data/test.xctemplate/libs/BeeFramework/Core/Network/Extension/NSObject+BeeRequest.m +175 -0
  58. data/test.xctemplate/libs/BeeFramework/Core/Storage/0.2.4.zip +0 -0
  59. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveBase.h +133 -0
  60. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveBase.m +641 -0
  61. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveRecord.h +106 -0
  62. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_ActiveRecord.m +1956 -0
  63. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Cache.h +91 -0
  64. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Cache.m +318 -0
  65. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Database.h +223 -0
  66. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Database.m +3007 -0
  67. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Keychain.h +55 -0
  68. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Keychain.m +173 -0
  69. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Storage.h +39 -0
  70. data/test.xctemplate/libs/BeeFramework/Core/Storage/Bee_Storage.m +33 -0
  71. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.h +47 -0
  72. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeDatabase.m +81 -0
  73. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.h +44 -0
  74. data/test.xctemplate/libs/BeeFramework/Core/Storage/Extension/NSObject+BeeKeychain.m +57 -0
  75. data/test.xctemplate/libs/BeeFramework/MVC/Bee_MVC.h +49 -0
  76. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Controller.h +66 -0
  77. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Controller.mm +228 -0
  78. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Message.h +209 -0
  79. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_Message.mm +873 -0
  80. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_MessageQueue.h +75 -0
  81. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Bee_MessageQueue.mm +389 -0
  82. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+ActiveRecord.h +52 -0
  83. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+ActiveRecord.m +150 -0
  84. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.h +49 -0
  85. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+HTTP.mm +201 -0
  86. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.h +52 -0
  87. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+JSON.mm +118 -0
  88. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.h +49 -0
  89. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/BeeMessage+XML.mm +78 -0
  90. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/NSObject+BeeMessage.h +57 -0
  91. data/test.xctemplate/libs/BeeFramework/MVC/Controller/Extension/NSObject+BeeMessage.mm +138 -0
  92. data/test.xctemplate/libs/BeeFramework/MVC/Model/Bee_Model.h +64 -0
  93. data/test.xctemplate/libs/BeeFramework/MVC/Model/Bee_Model.m +190 -0
  94. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActionSheet.h +71 -0
  95. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActionSheet.m +307 -0
  96. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.h +52 -0
  97. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIActivityIndicatorView.m +152 -0
  98. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIAlertView.h +73 -0
  99. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIAlertView.m +234 -0
  100. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIButton.h +97 -0
  101. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIButton.m +424 -0
  102. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIDatePicker.h +78 -0
  103. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIDatePicker.m +362 -0
  104. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIGridCell.h +82 -0
  105. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIGridCell.m +298 -0
  106. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIImageView.h +110 -0
  107. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIImageView.m +541 -0
  108. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIKeyboard.h +74 -0
  109. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIKeyboard.m +243 -0
  110. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UILabel.h +46 -0
  111. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UILabel.m +99 -0
  112. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIMatrixView.h +124 -0
  113. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIMatrixView.m +821 -0
  114. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UINavigationBar.h +57 -0
  115. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UINavigationBar.m +161 -0
  116. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIOrientation.h +60 -0
  117. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIOrientation.m +146 -0
  118. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPageControl.h +61 -0
  119. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPageControl.m +190 -0
  120. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIProgressView.h +47 -0
  121. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIProgressView.m +113 -0
  122. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPullLoader.h +71 -0
  123. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIPullLoader.m +236 -0
  124. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIScrollView.h +146 -0
  125. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIScrollView.m +1487 -0
  126. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISegmentedControl.h +60 -0
  127. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISegmentedControl.m +192 -0
  128. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISignal.h +126 -0
  129. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UISignal.m +453 -0
  130. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITabBar.h +70 -0
  131. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITabBar.m +249 -0
  132. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextField.h +67 -0
  133. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextField.m +242 -0
  134. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextView.h +75 -0
  135. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITextView.m +311 -0
  136. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITipsView.h +184 -0
  137. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UITipsView.m +911 -0
  138. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIWebView.h +65 -0
  139. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIWebView.m +242 -0
  140. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIZoomView.h +91 -0
  141. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_UIZoomView.m +444 -0
  142. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_View.h +72 -0
  143. data/test.xctemplate/libs/BeeFramework/MVC/View/Bee_View.m +38 -0
  144. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/CGRect+BeeExtension.h +79 -0
  145. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/CGRect+BeeExtension.m +288 -0
  146. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIColor+BeeExtension.h +65 -0
  147. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIColor+BeeExtension.m +161 -0
  148. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.h +45 -0
  149. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIFont+BeeExtension.m +137 -0
  150. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.h +56 -0
  151. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIImage+BeeExtension.m +218 -0
  152. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeExtension.h +105 -0
  153. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeExtension.m +556 -0
  154. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.h +53 -0
  155. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+BeeUISignal.m +104 -0
  156. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+HoldGesture.h +52 -0
  157. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+HoldGesture.m +170 -0
  158. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+PanGesture.h +54 -0
  159. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+PanGesture.m +166 -0
  160. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+SwipeGesture.h +54 -0
  161. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+SwipeGesture.m +184 -0
  162. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+TapGesture.h +57 -0
  163. data/test.xctemplate/libs/BeeFramework/MVC/View/Extension/UIView+TapGesture.m +275 -0
  164. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIBoard.h +212 -0
  165. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIBoard.m +1219 -0
  166. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStack.h +111 -0
  167. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStack.m +694 -0
  168. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStackGroup.h +71 -0
  169. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_UIStackGroup.m +258 -0
  170. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_ViewController.h +45 -0
  171. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Bee_ViewController.m +36 -0
  172. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.h +57 -0
  173. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeExtension.m +151 -0
  174. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.h +53 -0
  175. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+BeeUISignal.m +92 -0
  176. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.h +72 -0
  177. data/test.xctemplate/libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.m +175 -0
  178. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UICollection.h +59 -0
  179. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UICollection.m +249 -0
  180. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UILayout.h +199 -0
  181. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UILayout.m +1170 -0
  182. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIQuery.h +113 -0
  183. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIQuery.m +710 -0
  184. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIStyle.h +66 -0
  185. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UIStyle.m +189 -0
  186. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplate.h +69 -0
  187. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplate.m +210 -0
  188. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.h +45 -0
  189. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateAndroid.m +59 -0
  190. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.h +45 -0
  191. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateHTML.m +55 -0
  192. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.h +45 -0
  193. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateJSON.m +54 -0
  194. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.h +45 -0
  195. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateOmniGraffle.m +54 -0
  196. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.h +45 -0
  197. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_UITemplateXML.m +438 -0
  198. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.h +60 -0
  199. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Bee_ViewLayout.m +37 -0
  200. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.h +45 -0
  201. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIQuery+BeeUIStyle.m +55 -0
  202. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.h +45 -0
  203. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/BeeUIStyle+BeeUIQuery.m +55 -0
  204. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.h +41 -0
  205. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIButton+BeeUIStyle.m +100 -0
  206. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.h +41 -0
  207. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIImageView+BeeUIStyle.m +101 -0
  208. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.h +41 -0
  209. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UILabel+BeeUIStyle.m +48 -0
  210. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.h +41 -0
  211. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextField+BeeUIStyle.m +77 -0
  212. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.h +41 -0
  213. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UITextView+BeeUIStyle.m +47 -0
  214. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUILayout.h +52 -0
  215. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUILayout.m +177 -0
  216. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.h +44 -0
  217. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIQuery.m +57 -0
  218. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.h +50 -0
  219. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIView+BeeUIStyle.m +283 -0
  220. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUILayout.h +52 -0
  221. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUILayout.m +178 -0
  222. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.h +44 -0
  223. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIQuery.m +58 -0
  224. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.h +44 -0
  225. data/test.xctemplate/libs/BeeFramework/MVC/ViewLayout/Extension/UIViewController+BeeUIStyle.m +57 -0
  226. metadata +226 -3
@@ -0,0 +1,311 @@
1
+ //
2
+ // ______ ______ ______
3
+ // /\ __ \ /\ ___\ /\ ___\
4
+ // \ \ __< \ \ __\_ \ \ __\_
5
+ // \ \_____\ \ \_____\ \ \_____\
6
+ // \/_____/ \/_____/ \/_____/
7
+ //
8
+ // Copyright (c) 2012 BEE creators
9
+ // http://www.whatsbug.com
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining a
12
+ // copy of this software and associated documentation files (the "Software"),
13
+ // to deal in the Software without restriction, including without limitation
14
+ // the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
+ // and/or sell copies of the Software, and to permit persons to whom the
16
+ // Software is furnished to do so, subject to the following conditions:
17
+ //
18
+ // The above copyright notice and this permission notice shall be included in
19
+ // all copies or substantial portions of the Software.
20
+ //
21
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27
+ // IN THE SOFTWARE.
28
+ //
29
+ //
30
+ // Bee_UITextView.m
31
+ //
32
+
33
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
34
+
35
+ #import "Bee_Precompile.h"
36
+ #import "Bee_UITextView.h"
37
+ #import "Bee_UISignal.h"
38
+ #import "UIView+BeeExtension.h"
39
+ #import "UIView+BeeUISignal.h"
40
+
41
+ #pragma mark -
42
+
43
+ @interface BeeUITextViewAgent : NSObject<UITextViewDelegate>
44
+ {
45
+ BeeUITextView * _target;
46
+ }
47
+
48
+ @property (nonatomic, assign) BeeUITextView * target;
49
+
50
+ @end
51
+
52
+ #pragma mark -
53
+
54
+ @implementation BeeUITextViewAgent
55
+
56
+ @synthesize target = _target;
57
+
58
+ - (BOOL)textViewShouldBeginEditing:(UITextView *)textView
59
+ {
60
+ [_target updatePlaceHolder];
61
+ [_target sendUISignal:BeeUITextView.WILL_ACTIVE];
62
+ return YES;
63
+ }
64
+
65
+ - (void)textViewDidBeginEditing:(UITextView *)textView
66
+ {
67
+ [_target updatePlaceHolder];
68
+ [_target sendUISignal:BeeUITextView.DID_ACTIVED];
69
+ }
70
+
71
+ - (BOOL)textViewShouldEndEditing:(UITextView *)textView
72
+ {
73
+ [_target updatePlaceHolder];
74
+ [_target sendUISignal:BeeUITextView.WILL_DEACTIVE];
75
+ return YES;
76
+ }
77
+
78
+ - (void)textViewDidEndEditing:(UITextView *)textView
79
+ {
80
+ [_target updatePlaceHolder];
81
+ [_target sendUISignal:BeeUITextView.DID_DEACTIVED];
82
+ }
83
+
84
+ - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)string
85
+ {
86
+ if ( 1 == range.length )
87
+ {
88
+ [_target sendUISignal:BeeUITextView.TEXT_CHANGED];
89
+ return YES;
90
+ }
91
+
92
+ if ( [string isEqualToString:@"\n"] || [string isEqualToString:@"\r"] )
93
+ {
94
+ BeeUISignal * signal = [_target sendUISignal:BeeUITextView.RETURN];
95
+ if ( signal )
96
+ {
97
+ return signal.boolValue;
98
+ }
99
+ }
100
+
101
+ NSString * text = [_target.text stringByReplacingCharactersInRange:range withString:string];
102
+ if ( _target.maxLength > 0 && text.length > _target.maxLength )
103
+ {
104
+ [_target sendUISignal:BeeUITextView.TEXT_OVERFLOW];
105
+ return NO;
106
+ }
107
+
108
+ return YES;
109
+ }
110
+
111
+ - (void)textViewDidChange:(UITextView *)textView
112
+ {
113
+ [_target updatePlaceHolder];
114
+ [_target sendUISignal:BeeUITextView.TEXT_CHANGED];
115
+ }
116
+
117
+ - (void)textViewDidChangeSelection:(UITextView *)textView
118
+ {
119
+ [_target updatePlaceHolder];
120
+ [_target sendUISignal:BeeUITextView.SELECTION_CHANGED];
121
+ }
122
+
123
+ @end
124
+
125
+ #pragma mark -
126
+
127
+ @interface BeeUITextView(Private)
128
+ - (void)initSelf;
129
+ @end
130
+
131
+ #pragma mark -
132
+
133
+ @implementation BeeUITextView
134
+
135
+ DEF_SIGNAL( WILL_ACTIVE )
136
+ DEF_SIGNAL( DID_ACTIVED )
137
+ DEF_SIGNAL( WILL_DEACTIVE )
138
+ DEF_SIGNAL( DID_DEACTIVED )
139
+ DEF_SIGNAL( TEXT_CHANGED )
140
+ DEF_SIGNAL( TEXT_OVERFLOW )
141
+ DEF_SIGNAL( SELECTION_CHANGED )
142
+ DEF_SIGNAL( RETURN )
143
+
144
+ @synthesize active;
145
+ @synthesize placeholder = _placeholder;
146
+ @synthesize placeHolderLabel = _placeHolderLabel;
147
+ @synthesize placeHolderColor = _placeHolderColor;
148
+ @synthesize maxLength = _maxLength;
149
+ @synthesize nextChain = _nextChain;
150
+
151
+ + (BeeUITextView *)spawn
152
+ {
153
+ return [[[BeeUITextView alloc] initWithFrame:CGRectZero] autorelease];
154
+ }
155
+
156
+ + (BeeUITextView *)spawn:(NSString *)tagString
157
+ {
158
+ BeeUITextView * view = [[[BeeUITextView alloc] init] autorelease];
159
+ view.tagString = tagString;
160
+ return view;
161
+ }
162
+
163
+ - (id)init
164
+ {
165
+ self = [super initWithFrame:CGRectZero];
166
+ if( self )
167
+ {
168
+ [self initSelf];
169
+ }
170
+ return self;
171
+ }
172
+
173
+ - (id)initWithFrame:(CGRect)frame
174
+ {
175
+ self = [super initWithFrame:frame];
176
+ if( self )
177
+ {
178
+ [self initSelf];
179
+ }
180
+ return self;
181
+ }
182
+
183
+ // thanks to @ilikeido
184
+ - (id)initWithCoder:(NSCoder *)aDecoder
185
+ {
186
+ self = [super initWithCoder:aDecoder];
187
+ if ( self )
188
+ {
189
+ [self initSelf];
190
+ }
191
+ return self;
192
+ }
193
+
194
+ - (void)initSelf
195
+ {
196
+ self.opaque = NO;
197
+ self.backgroundColor = [UIColor clearColor];
198
+
199
+ self.placeholder = @"";
200
+ self.placeHolderColor = [UIColor grayColor];
201
+
202
+
203
+
204
+
205
+ _maxLength = 0;
206
+
207
+
208
+ [_agent release];
209
+ _agent = [[BeeUITextViewAgent alloc] init];
210
+ _agent.target = self;
211
+
212
+ self.delegate = _agent;
213
+ }
214
+
215
+ - (void)dealloc
216
+ {
217
+ [_agent release];
218
+
219
+ self.placeHolderLabel = nil;
220
+ self.placeHolderColor = nil;
221
+ self.placeholder = nil;
222
+
223
+ [super dealloc];
224
+ }
225
+
226
+ - (void)drawRect:(CGRect)rect
227
+ {
228
+ [self updatePlaceHolder];
229
+ [super drawRect:rect];
230
+ }
231
+
232
+ - (void)updatePlaceHolder
233
+ {
234
+ if ( [_placeholder length] > 0 )
235
+ {
236
+ if ( nil == _placeHolderLabel )
237
+ {
238
+ CGRect labelFrame = CGRectMake( 9.0f, 8.0f, self.frame.size.width, 0.0f );
239
+
240
+ _placeHolderLabel = [[UILabel alloc] initWithFrame:labelFrame];
241
+ _placeHolderLabel.lineBreakMode = UILineBreakModeCharacterWrap;
242
+ _placeHolderLabel.numberOfLines = 1;
243
+ _placeHolderLabel.font = self.font;
244
+ _placeHolderLabel.backgroundColor = [UIColor clearColor];
245
+ _placeHolderLabel.textColor = _placeHolderColor;
246
+ _placeHolderLabel.alpha = 0.0f;
247
+ _placeHolderLabel.opaque = NO;
248
+ [self addSubview:_placeHolderLabel];
249
+ }
250
+
251
+ _placeHolderLabel.frame = CGRectMake(_placeHolderLabel.frame.origin.x, _placeHolderLabel.frame.origin.y, self.frame.size.width, 0);
252
+ _placeHolderLabel.lineBreakMode = UILineBreakModeCharacterWrap;
253
+ _placeHolderLabel.numberOfLines = 1;
254
+ _placeHolderLabel.text = self.placeholder;
255
+ [_placeHolderLabel sizeToFit];
256
+ [self sendSubviewToBack:_placeHolderLabel];
257
+ }
258
+
259
+ if ( _placeHolderLabel )
260
+ {
261
+ _placeHolderLabel.text = _placeholder;
262
+ [_placeHolderLabel sizeToFit];
263
+
264
+ if ( [_placeholder length] > 0 )
265
+ {
266
+ if ( 0 == [self.text length] )
267
+ {
268
+ [_placeHolderLabel setAlpha:1.0f];
269
+ }
270
+ else
271
+ {
272
+ [_placeHolderLabel setAlpha:0.0f];
273
+ }
274
+ }
275
+ }
276
+ }
277
+
278
+ - (BOOL)active
279
+ {
280
+ return [self isFirstResponder];
281
+ }
282
+
283
+ - (void)setActive:(BOOL)flag
284
+ {
285
+ if ( flag )
286
+ {
287
+ [self becomeFirstResponder];
288
+ }
289
+ else
290
+ {
291
+ [self resignFirstResponder];
292
+ }
293
+ }
294
+
295
+ - (void)handleUISignal:(BeeUISignal *)signal
296
+ {
297
+ if ( [signal is:BeeUITextView.RETURN] )
298
+ {
299
+ if ( _nextChain && _nextChain != self )
300
+ {
301
+ [_nextChain becomeFirstResponder];
302
+ return;
303
+ }
304
+ }
305
+
306
+ [super handleUISignal:signal];
307
+ }
308
+
309
+ @end
310
+
311
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
@@ -0,0 +1,184 @@
1
+ //
2
+ // ______ ______ ______
3
+ // /\ __ \ /\ ___\ /\ ___\
4
+ // \ \ __< \ \ __\_ \ \ __\_
5
+ // \ \_____\ \ \_____\ \ \_____\
6
+ // \/_____/ \/_____/ \/_____/
7
+ //
8
+ // Copyright (c) 2012 BEE creators
9
+ // http://www.whatsbug.com
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining a
12
+ // copy of this software and associated documentation files (the "Software"),
13
+ // to deal in the Software without restriction, including without limitation
14
+ // the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
+ // and/or sell copies of the Software, and to permit persons to whom the
16
+ // Software is furnished to do so, subject to the following conditions:
17
+ //
18
+ // The above copyright notice and this permission notice shall be included in
19
+ // all copies or substantial portions of the Software.
20
+ //
21
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27
+ // IN THE SOFTWARE.
28
+ //
29
+ //
30
+ // Bee_UITipsView.h
31
+ //
32
+
33
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
34
+
35
+ #import <Foundation/Foundation.h>
36
+ #import "Bee_UISignal.h"
37
+ #import "Bee_Singleton.h"
38
+
39
+ #pragma mark -
40
+
41
+ @class BeeUITipsView;
42
+
43
+ @interface NSObject(BeeUITipsView)
44
+
45
+ - (BeeUITipsView *)presentingTips;
46
+
47
+ - (BeeUITipsView *)presentMessageTips:(NSString *)message;
48
+ - (BeeUITipsView *)presentSuccessTips:(NSString *)message;
49
+ - (BeeUITipsView *)presentFailureTips:(NSString *)message;
50
+ - (BeeUITipsView *)presentLoadingTips:(NSString *)message;
51
+ - (BeeUITipsView *)presentProgressTips:(NSString *)message;
52
+
53
+ - (void)dismissTips;
54
+
55
+ @end
56
+
57
+ #pragma mark -
58
+
59
+ @interface BeeUITipsView : UIView
60
+ {
61
+ NSTimeInterval _timerSeconds;
62
+ NSTimer * _timer;
63
+
64
+ BOOL _useMask;
65
+ BOOL _useScaling;
66
+ BOOL _useBounces;
67
+ BOOL _interrupt; // 是否可被打断
68
+ BOOL _timeLimit;
69
+ BOOL _exclusive; // 是否独占模式,其他区域不能点击?
70
+ BOOL _fullScreen;
71
+ }
72
+
73
+ AS_SIGNAL( WILL_APPEAR ); // 将要显示
74
+ AS_SIGNAL( DID_APPEAR ); // 已经显示
75
+ AS_SIGNAL( WILL_DISAPPEAR ); // 将要隐藏
76
+ AS_SIGNAL( DID_DISAPPEAR ); // 已经隐藏
77
+
78
+ @property (nonatomic, assign) NSTimeInterval timerSeconds;
79
+ @property (nonatomic, assign) BOOL useMask;
80
+ @property (nonatomic, assign) BOOL useScaling;
81
+ @property (nonatomic, assign) BOOL useBounces;
82
+ @property (nonatomic, assign) BOOL interrupt;
83
+ @property (nonatomic, assign) BOOL timeLimit;
84
+ @property (nonatomic, assign) BOOL exclusive;
85
+ @property (nonatomic, assign) BOOL fullScreen;
86
+
87
+ - (void)present;
88
+ - (void)presentInView:(UIView *)view;
89
+ - (void)dismiss;
90
+
91
+ @end
92
+
93
+ #pragma mark -
94
+
95
+ @interface BeeUIMessageTipsView : BeeUITipsView
96
+ {
97
+ UIImageView * _bubbleView;
98
+ UIImageView * _iconView;
99
+ UILabel * _labelView;
100
+ }
101
+
102
+ @property (nonatomic, retain) UIImageView * bubbleView;
103
+ @property (nonatomic, retain) UIImageView * iconView;
104
+ @property (nonatomic, retain) UILabel * labelView;
105
+
106
+ @end
107
+
108
+ #pragma mark -
109
+
110
+ @interface BeeUILoadingTipsView : BeeUITipsView
111
+ {
112
+ UIImageView * _bubbleView;
113
+ UIActivityIndicatorView * _indicator;
114
+ UILabel * _labelView;
115
+ }
116
+
117
+ @property (nonatomic, retain) UIImageView * bubbleView;
118
+ @property (nonatomic, retain) UIActivityIndicatorView * indicator;
119
+ @property (nonatomic, retain) UILabel * labelView;
120
+
121
+ @end
122
+
123
+ #pragma mark -
124
+
125
+ @interface BeeUIProgressTipsView : BeeUITipsView
126
+ {
127
+ UIImageView * _bubbleView;
128
+ UIProgressView * _indicator;
129
+ UILabel * _labelView;
130
+ }
131
+
132
+ @property (nonatomic, retain) UIImageView * bubbleView;
133
+ @property (nonatomic, retain) UIProgressView * indicator;
134
+ @property (nonatomic, retain) UILabel * labelView;
135
+
136
+ - (void)updateProgress:(float)percent;
137
+
138
+ @end
139
+
140
+ #pragma mark -
141
+
142
+ @interface BeeUITipsCenter : NSObject
143
+ {
144
+ UIView * _defaultContainerView;
145
+ UIButton * _maskView;
146
+ BeeUITipsView * _tipsAppear;
147
+ BeeUITipsView * _tipsDisappear;
148
+
149
+ UIImage * _bubble;
150
+ UIImage * _messageIcon;
151
+ UIImage * _successIcon;
152
+ UIImage * _failureIcon;
153
+ }
154
+
155
+ @property (nonatomic, assign) UIView * defaultContainerView;
156
+ @property (nonatomic, retain) UIView * maskView;
157
+ @property (nonatomic, retain) BeeUITipsView * tipsAppear;
158
+ @property (nonatomic, retain) BeeUITipsView * tipsDisappear;
159
+
160
+ @property (nonatomic, retain) UIImage * bubble;
161
+ @property (nonatomic, retain) UIImage * messageIcon;
162
+ @property (nonatomic, retain) UIImage * successIcon;
163
+ @property (nonatomic, retain) UIImage * failureIcon;
164
+
165
+ AS_SINGLETON( BeeUITipsCenter )
166
+
167
+ + (void)setDefaultContainerView:(UIView *)view;
168
+ + (void)setDefaultMessageIcon:(UIImage *)image;
169
+ + (void)setDefaultSuccessIcon:(UIImage *)image;
170
+ + (void)setDefaultFailureIcon:(UIImage *)image;
171
+ + (void)setDefaultBubble:(UIImage *)image;
172
+
173
+ - (void)dismissTips;
174
+ - (void)dismissTipsByOwner:(UIView *)parentView;
175
+
176
+ - (BeeUITipsView *)presentMessageTips:(NSString *)message inView:(UIView *)view;
177
+ - (BeeUITipsView *)presentSuccessTips:(NSString *)message inView:(UIView *)view;
178
+ - (BeeUITipsView *)presentFailureTips:(NSString *)message inView:(UIView *)view;
179
+ - (BeeUITipsView *)presentLoadingTips:(NSString *)message inView:(UIView *)view;
180
+ - (BeeUITipsView *)presentProgressTips:(NSString *)message inView:(UIView *)view;
181
+
182
+ @end
183
+
184
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)