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,444 @@
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_UIZoomView.m
31
+ //
32
+
33
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
34
+
35
+ #import "Bee_Precompile.h"
36
+ #import "Bee_UIZoomView.h"
37
+ #import "Bee_UISignal.h"
38
+ #import "UIView+BeeExtension.h"
39
+
40
+ #import "CGRect+BeeExtension.h"
41
+ #import "NSNumber+BeeExtension.h"
42
+ #import "UIView+BeeUISignal.h"
43
+
44
+ #pragma mark -
45
+
46
+ @implementation BeeUIZoomInnerView
47
+
48
+ @synthesize zoomDelegate = _zoomDelegate;
49
+
50
+ - (id)initWithFrame:(CGRect)frame
51
+ {
52
+ self = [super initWithFrame:frame];
53
+ if ( self )
54
+ {
55
+ self.backgroundColor = [UIColor clearColor];
56
+
57
+ UITapGestureRecognizer * singleTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onSingleTap:)];
58
+ singleTapGesture.numberOfTapsRequired = 1;
59
+ singleTapGesture.numberOfTouchesRequired = 1;
60
+ singleTapGesture.cancelsTouchesInView = YES;
61
+ singleTapGesture.delaysTouchesBegan = YES;
62
+ singleTapGesture.delaysTouchesEnded = YES;
63
+ [self addGestureRecognizer:singleTapGesture];
64
+ [singleTapGesture release];
65
+
66
+ UITapGestureRecognizer * doubleTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onDoubleTap:)];
67
+ doubleTapGesture.numberOfTapsRequired = 2;
68
+ doubleTapGesture.numberOfTouchesRequired = 1;
69
+ doubleTapGesture.cancelsTouchesInView = YES;
70
+ [self addGestureRecognizer:doubleTapGesture];
71
+ [doubleTapGesture release];
72
+ }
73
+ return self;
74
+ }
75
+
76
+ - (void)setContentSize:(CGSize)size
77
+ {
78
+ CGPoint middlePos;
79
+ CGSize selfSize = self.frame.size;
80
+ CGSize contSize = CGSizeZero;
81
+ UIView * contView = nil;
82
+
83
+ if ( _zoomDelegate && [_zoomDelegate respondsToSelector:@selector(zoomContentView:)] )
84
+ {
85
+ contView = [_zoomDelegate zoomContentView:self];
86
+ }
87
+
88
+ if ( _zoomDelegate && [_zoomDelegate respondsToSelector:@selector(zoomContentSize:)] )
89
+ {
90
+ contSize = [_zoomDelegate zoomContentSize:self];
91
+ }
92
+
93
+ if ( nil == contView )
94
+ return;
95
+
96
+ if ( self.zoomScale >= self.minimumZoomScale )
97
+ {
98
+ float newHeight = contSize.height * self.zoomScale;
99
+ float newWidth = contSize.width * self.zoomScale;
100
+
101
+ if (newHeight < selfSize.height )
102
+ {
103
+ newHeight = selfSize.height;
104
+ }
105
+
106
+ if (newWidth < selfSize.width )
107
+ {
108
+ newWidth = selfSize.width;
109
+ }
110
+
111
+ size.height = newHeight;
112
+ size.width = newWidth;
113
+
114
+ middlePos = CGPointMake( size.width / 2.0f, size.height / 2.0f );
115
+ }
116
+ else
117
+ {
118
+ middlePos = CGPointMake( selfSize.width / 2.0f, selfSize.height / 2.0f );
119
+ }
120
+
121
+ contView.center = middlePos;
122
+ [super setContentSize:size];
123
+
124
+ if ( _zoomDelegate )
125
+ {
126
+ [_zoomDelegate zoomInnerViewChanged:self];
127
+ }
128
+ }
129
+
130
+ - (void)onSingleTap:(UITapGestureRecognizer *)recognizer
131
+ {
132
+ if ( UIGestureRecognizerStateEnded == recognizer.state )
133
+ {
134
+ CGPoint location = [recognizer locationInView:self];
135
+ if ( _zoomDelegate )
136
+ {
137
+ [_zoomDelegate zoomInnerViewSingleTapped:self location:location];
138
+ }
139
+ }
140
+ }
141
+
142
+ - (void)onDoubleTap:(UITapGestureRecognizer *)recognizer
143
+ {
144
+ if ( UIGestureRecognizerStateEnded == recognizer.state )
145
+ {
146
+ CGPoint location = [recognizer locationInView:self];
147
+ if ( _zoomDelegate )
148
+ {
149
+ [_zoomDelegate zoomInnerViewDoubleTapped:self location:location];
150
+ }
151
+ }
152
+ }
153
+
154
+ - (void)dealloc
155
+ {
156
+ [super dealloc];
157
+ }
158
+
159
+ @end
160
+
161
+ #pragma mark -
162
+
163
+ @interface BeeUIZoomView(Private)
164
+ - (void)initSelf:(CGRect)frame;
165
+ - (void)whenScalingAnimationStopped;
166
+ - (void)onSingleTap:(UIPanGestureRecognizer *) recognizer;
167
+ - (void)onDoubleTap:(UIPanGestureRecognizer *) recognizer;
168
+ @end
169
+
170
+ @implementation BeeUIZoomView
171
+
172
+ DEF_SIGNAL( ZOOMING );
173
+ DEF_SIGNAL( ZOOMED );
174
+ DEF_SIGNAL( SINGLE_TAPPED );
175
+ DEF_SIGNAL( DOUBLE_TAPPED );
176
+
177
+ @synthesize innerView = _innerView;
178
+ @synthesize content = _content;
179
+ @synthesize contentSize = _contentSize;
180
+
181
+ + (BeeUIZoomView *)spawn
182
+ {
183
+ return [[[BeeUIZoomView alloc] init] autorelease];
184
+ }
185
+
186
+ + (BeeUIZoomView *)spawn:(NSString *)tagString
187
+ {
188
+ BeeUIZoomView * view = [[[BeeUIZoomView alloc] init] autorelease];
189
+ view.tagString = tagString;
190
+ return view;
191
+ }
192
+
193
+ - (id)init
194
+ {
195
+ self = [super init];
196
+ if ( self )
197
+ {
198
+ [self initSelf:CGRectZero];
199
+ }
200
+ return self;
201
+ }
202
+
203
+ - (id)initWithFrame:(CGRect)frame
204
+ {
205
+ self = [super initWithFrame:frame];
206
+ if ( self )
207
+ {
208
+ [self initSelf:frame];
209
+ }
210
+ return self;
211
+ }
212
+
213
+ - (void)initSelf:(CGRect)frame
214
+ {
215
+ self.alpha = 1.0f;
216
+ self.backgroundColor = [UIColor clearColor];
217
+
218
+ [_innerView release];
219
+ _innerView = [[BeeUIZoomInnerView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
220
+ _innerView.backgroundColor = [UIColor clearColor];
221
+ _innerView.zoomScale = 1.0f;
222
+ _innerView.minimumZoomScale = 0.8f;
223
+ _innerView.maximumZoomScale = 4.0f;
224
+ _innerView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
225
+ _innerView.contentMode = UIViewContentModeScaleAspectFit;
226
+ _innerView.contentOffset = CGPointZero;
227
+ _innerView.contentSize = CGSizeMake( frame.size.width, frame.size.height );
228
+ _innerView.clipsToBounds = YES;
229
+ _innerView.bouncesZoom = YES;
230
+ _innerView.scrollEnabled = YES;
231
+ _innerView.bouncesZoom = YES;
232
+ _innerView.bounces = YES;
233
+ _innerView.decelerationRate = _innerView.decelerationRate * 0.75f;
234
+ _innerView.showsVerticalScrollIndicator = NO;
235
+ _innerView.showsHorizontalScrollIndicator = NO;
236
+ _innerView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
237
+ _innerView.multipleTouchEnabled = YES;
238
+ _innerView.delegate = self;
239
+ _innerView.zoomDelegate = self;
240
+ [self addSubview:_innerView];
241
+ }
242
+
243
+ - (void)resetZoom
244
+ {
245
+ _innerView.zoomScale = 1.0f;
246
+ }
247
+
248
+ - (void)layoutContent
249
+ {
250
+ _content.frame = AspectFitRect( CGRectMake(0, 0, _contentSize.width, _contentSize.height), self.bounds );
251
+ _innerView.frame = self.bounds;
252
+ _innerView.contentSize = _contentSize;
253
+
254
+ [self layoutSubviews];
255
+ }
256
+
257
+ - (void)layoutContentRotated
258
+ {
259
+ CGRect bound;
260
+ bound.origin = self.bounds.origin;
261
+ bound.size.width = self.bounds.size.height;
262
+ bound.size.height = self.bounds.size.width;
263
+
264
+ _content.frame = AspectFitRect( CGRectMake(0, 0, _contentSize.height, _contentSize.width), bound );
265
+ _innerView.frame = bound;
266
+
267
+ CGSize contSize;
268
+ contSize.width = _contentSize.height;
269
+ contSize.height = _contentSize.width;
270
+
271
+ _innerView.contentSize = contSize;
272
+
273
+ [self layoutSubviews];
274
+ }
275
+
276
+ - (void)setContentSize:(CGSize)size
277
+ {
278
+ _contentSize = AspectFitSize( size, self.bounds.size );
279
+ }
280
+
281
+ - (void)setContent:(UIView *)contentView animated:(BOOL)animated
282
+ {
283
+ if ( nil == contentView )
284
+ return;
285
+
286
+ if ( contentView == _content )
287
+ return;
288
+
289
+ if ( _content )
290
+ {
291
+ [_content removeFromSuperview];
292
+ }
293
+
294
+ self.content = contentView;
295
+
296
+ if ( _content )
297
+ {
298
+ [_innerView addSubview:_content];
299
+
300
+ if ( animated )
301
+ {
302
+ [UIView beginAnimations:nil context:nil];
303
+ [UIView setAnimationDuration:0.3f];
304
+ [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
305
+ [UIView setAnimationDelegate:self];
306
+ [UIView setAnimationDidStopSelector:@selector(whenScalingAnimationStopped)];
307
+ }
308
+
309
+ [self layoutSubviews];
310
+
311
+ if ( animated )
312
+ {
313
+ [UIView commitAnimations];
314
+ }
315
+ else
316
+ {
317
+ [self whenScalingAnimationStopped];
318
+ }
319
+ }
320
+ }
321
+
322
+ - (void)whenScalingAnimationStopped
323
+ {
324
+ }
325
+
326
+ - (void)dealloc
327
+ {
328
+ SAFE_RELEASE_SUBVIEW( _content );
329
+ SAFE_RELEASE_SUBVIEW( _innerView );
330
+
331
+ [super dealloc];
332
+ }
333
+
334
+ #pragma mark -
335
+ #pragma mark UIScrollViewDelegate
336
+
337
+ - (void)scrollViewDidScroll:(UIScrollView *)scrollView
338
+ {
339
+ [self sendUISignal:BeeUIZoomView.ZOOMING];
340
+ }
341
+
342
+ - (void)scrollViewDidZoom:(UIScrollView *)scrollView
343
+ {
344
+ [self sendUISignal:BeeUIZoomView.ZOOMED];
345
+ }
346
+
347
+ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
348
+ {
349
+ [self sendUISignal:BeeUIZoomView.ZOOMING];
350
+ }
351
+
352
+ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
353
+ {
354
+ [self sendUISignal:BeeUIZoomView.ZOOMING];
355
+ }
356
+
357
+ - (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView
358
+ {
359
+ [self sendUISignal:BeeUIZoomView.ZOOMING];
360
+ }
361
+
362
+ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
363
+ {
364
+ [self sendUISignal:BeeUIZoomView.ZOOMING];
365
+ }
366
+
367
+ - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
368
+ {
369
+ return _content;
370
+ }
371
+
372
+ - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale
373
+ {
374
+ [self sendUISignal:BeeUIZoomView.ZOOMED];
375
+
376
+ if ( _innerView.zoomScale < 1.0f )
377
+ {
378
+ [_innerView setZoomScale:1.0f animated:YES];
379
+ }
380
+ }
381
+
382
+ #pragma mark -
383
+ #pragma mark ZoomInnerViewDelegate
384
+
385
+ - (CGSize)zoomContentSize:(BeeUIZoomInnerView *)view
386
+ {
387
+ return _contentSize;
388
+ }
389
+
390
+ - (UIView *)zoomContentView:(BeeUIZoomInnerView *)view
391
+ {
392
+ return _content;
393
+ }
394
+
395
+ - (void)zoomInnerViewChanged:(BeeUIZoomInnerView *)view
396
+ {
397
+ [self sendUISignal:BeeUIZoomView.ZOOMING];
398
+ }
399
+
400
+ - (void)zoomInnerViewSingleTapped:(BeeUIZoomInnerView *)view location:(CGPoint)location
401
+ {
402
+ NSDictionary * dict = [NSDictionary dictionaryWithObjectsAndKeys:
403
+ __FLOAT(location.x), @"x",
404
+ __FLOAT(location.y), @"y",
405
+ nil];
406
+
407
+ [self sendUISignal:BeeUIZoomView.SINGLE_TAPPED withObject:dict];
408
+ }
409
+
410
+ - (void)zoomInnerViewDoubleTapped:(BeeUIZoomInnerView *)view location:(CGPoint)location
411
+ {
412
+ CGRect zoomRect;
413
+ float zoomScale = 0.0f;
414
+
415
+ if ( _innerView.zoomScale < 1.0f )
416
+ {
417
+ zoomScale = 1.0f;
418
+ }
419
+ else if ( _innerView.zoomScale == 1.0f )
420
+ {
421
+ zoomScale = _innerView.maximumZoomScale;
422
+ }
423
+ else if ( _innerView.zoomScale > 1.0f && _innerView.zoomScale < _innerView.maximumZoomScale )
424
+ {
425
+ zoomScale = _innerView.maximumZoomScale;
426
+ }
427
+ else
428
+ {
429
+ zoomScale = 1.0f; // _innerView.minimumZoomScale;
430
+ }
431
+
432
+ zoomRect.size.width = _innerView.frame.size.width / zoomScale;
433
+ zoomRect.size.height = _innerView.frame.size.height / zoomScale;
434
+ zoomRect.origin.x = (self.bounds.size.width - zoomRect.size.width) / 2.0f;
435
+ zoomRect.origin.y = (self.bounds.size.height - zoomRect.size.height) / 2.0f;
436
+
437
+ [_innerView zoomToRect:zoomRect animated:YES];
438
+
439
+ [self sendUISignal:BeeUIZoomView.DOUBLE_TAPPED];
440
+ }
441
+
442
+ @end
443
+
444
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
@@ -0,0 +1,72 @@
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_View.h
31
+ //
32
+
33
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
34
+
35
+ #import "Bee_UISignal.h"
36
+ #import "Bee_UIActionSheet.h"
37
+ #import "Bee_UIAlertView.h"
38
+ #import "Bee_UIActivityIndicatorView.h"
39
+ #import "Bee_UIButton.h"
40
+ #import "Bee_UIDatePicker.h"
41
+ #import "Bee_UIGridCell.h"
42
+ #import "Bee_UIKeyboard.h"
43
+ #import "Bee_UIImageView.h"
44
+ #import "Bee_UILabel.h"
45
+ #import "Bee_UIMatrixView.h"
46
+ #import "Bee_UINavigationBar.h"
47
+ #import "Bee_UIOrientation.h"
48
+ #import "Bee_UIProgressView.h"
49
+ #import "Bee_UIPageControl.h"
50
+ #import "Bee_UIPullLoader.h"
51
+ #import "Bee_UISegmentedControl.h"
52
+ #import "Bee_UIScrollView.h"
53
+ #import "Bee_UITabBar.h"
54
+ #import "Bee_UITextField.h"
55
+ #import "Bee_UITextView.h"
56
+ #import "Bee_UITipsView.h"
57
+ #import "Bee_UIWebView.h"
58
+ #import "Bee_UIZoomView.h"
59
+
60
+ #import "CGRect+BeeExtension.h"
61
+ #import "UIFont+BeeExtension.h"
62
+ #import "UIColor+BeeExtension.h"
63
+ #import "UIImage+BeeExtension.h"
64
+ #import "UIView+BeeExtension.h"
65
+
66
+ #import "UIView+BeeUISignal.h"
67
+ #import "UIView+HoldGesture.h"
68
+ #import "UIView+PanGesture.h"
69
+ #import "UIView+SwipeGesture.h"
70
+ #import "UIView+TapGesture.h"
71
+
72
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
@@ -0,0 +1,38 @@
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_View.h
31
+ //
32
+
33
+ #import "Bee_Precompile.h"
34
+ #import "Bee_View.h"
35
+
36
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
37
+
38
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
@@ -0,0 +1,79 @@
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
+ // CGRect+BeeExtension.h
31
+ //
32
+
33
+ #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)
34
+
35
+ #import "Bee_Precompile.h"
36
+
37
+ #pragma mark -
38
+
39
+ CGSize AspectFitSizeByWidth( CGSize size, CGFloat width );
40
+ CGSize AspectFitSizeByHeight( CGSize size, CGFloat height );
41
+
42
+ CGSize AspectFitSize( CGSize size, CGSize bound );
43
+ CGRect AspectFitRect( CGRect rect, CGRect bound );
44
+
45
+ CGSize AspectFillSize( CGSize size, CGSize bound );
46
+ CGRect AspectFillRect( CGRect rect, CGRect bound );
47
+
48
+ CGRect CGRectFromString( NSString * str );
49
+
50
+ CGPoint CGPointZeroNan( CGPoint point );
51
+ CGSize CGSizeZeroNan( CGSize size );
52
+ CGRect CGRectZeroNan( CGRect rect );
53
+
54
+ CGRect CGRectAlignX( CGRect rect1, CGRect rect2 ); // rect1向rect2的X轴中心点对齐
55
+ CGRect CGRectAlignY( CGRect rect1, CGRect rect2 ); // rect1向rect2的Y轴中心点对齐
56
+ CGRect CGRectAlignCenter( CGRect rect1, CGRect rect2 ); // rect1向rect2的中心点对齐
57
+
58
+ CGRect CGRectAlignTop( CGRect rect1, CGRect rect2 ); // 右边缘对齐
59
+ CGRect CGRectAlignBottom( CGRect rect1, CGRect rect2 ); // 下边缘对齐
60
+ CGRect CGRectAlignLeft( CGRect rect1, CGRect rect2 ); // 左边缘对齐
61
+ CGRect CGRectAlignRight( CGRect rect1, CGRect rect2 ); // 上边缘对齐
62
+
63
+ CGRect CGRectAlignLeftTop( CGRect rect1, CGRect rect2 ); // 右边缘对齐
64
+ CGRect CGRectAlignLeftBottom( CGRect rect1, CGRect rect2 ); // 下边缘对齐
65
+ CGRect CGRectAlignRightTop( CGRect rect1, CGRect rect2 ); // 右边缘对齐
66
+ CGRect CGRectAlignRightBottom( CGRect rect1, CGRect rect2 ); // 下边缘对齐
67
+
68
+ CGRect CGRectCloseToTop( CGRect rect1, CGRect rect2 ); // 与上边缘靠近
69
+ CGRect CGRectCloseToBottom( CGRect rect1, CGRect rect2 ); // 与下边缘靠近
70
+ CGRect CGRectCloseToLeft( CGRect rect1, CGRect rect2 ); // 与左边缘靠近
71
+ CGRect CGRectCloseToRight( CGRect rect1, CGRect rect2 ); // 与右边缘靠近
72
+
73
+ CGRect CGRectMoveCenter( CGRect rect1, CGPoint offset ); // 移动中心点
74
+ CGRect CGRectMakeBound( CGFloat w, CGFloat h );
75
+
76
+ CGRect CGSizeMakeBound( CGSize size );
77
+ CGRect CGRectToBound( CGRect frame );
78
+
79
+ #endif // #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)