SSDKAuthViewStyle.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //
  2. // SSDKAuthViewStyle.h
  3. // ShareSDK
  4. //
  5. // Created by fenghj on 15/4/13.
  6. // Copyright (c) 2015年 掌淘科技. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /**
  10. * 授权视图样式
  11. */
  12. @interface SSDKAuthViewStyle : NSObject
  13. /**
  14. * 设置导航栏背景
  15. *
  16. * @param image 背景图片
  17. */
  18. + (void)setNavigationBarBackgroundImage:(UIImage *)image;
  19. /**
  20. * 设置导航栏颜色
  21. *
  22. * @param color 背景颜色
  23. */
  24. + (void)setNavigationBarBackgroundColor:(UIColor *)color;
  25. /**
  26. * 设置标题
  27. *
  28. * @param title 标题
  29. */
  30. + (void)setTitle:(NSString *)title;
  31. /**
  32. * 设置标题文本颜色
  33. *
  34. * @param color 颜色
  35. */
  36. + (void)setTitleColor:(UIColor *)color;
  37. /**
  38. * 设置取消按钮标签
  39. *
  40. * @param label 取消按钮标签
  41. */
  42. + (void)setCancelButtonLabel:(NSString *)label;
  43. /**
  44. * 设置取消按钮标签文本颜色
  45. *
  46. * @param color 颜色
  47. */
  48. + (void)setCancelButtonLabelColor:(UIColor *)color;
  49. /**
  50. * 设置取消按钮图片
  51. *
  52. * @param image 图片
  53. */
  54. + (void)setCancelButtonImage:(UIImage *)image;
  55. /**
  56. * 设置取消按钮的左边距
  57. *
  58. * @param margin 边距
  59. */
  60. + (void)setCancelButtonLeftMargin:(CGFloat)margin;
  61. /**
  62. * 设置导航栏右边按钮
  63. *
  64. * @param label 右边按钮
  65. */
  66. + (void)setRightButton:(UIButton *)button;
  67. /**
  68. * 设置导航栏右边按钮的右边距
  69. *
  70. * @param margin 边距
  71. */
  72. + (void)setRightButtonRightMargin:(CGFloat)margin;
  73. /**
  74. * 设置支持的页面方向
  75. */
  76. + (void)setSupportedInterfaceOrientation:(UIInterfaceOrientationMask)toInterfaceOrientation;
  77. /**
  78. * 设置状态栏样式
  79. *
  80. * @param style 样式
  81. */
  82. + (void)setStatusBarStyle:(UIStatusBarStyle)style;
  83. @end