Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial commit for setBackgroundImage

  • Loading branch information...
commit 2e5cff354141c30c5a744face6fff34387b10111 1 parent 65fa7fb
Glenn / devalias authored
4 src/launcher/src/NILauncherView.h
@@ -81,6 +81,10 @@ extern const NSInteger NILauncherViewDynamic;
81 81
82 82 - (void)setFrame:(CGRect)frame;
83 83
  84 +#pragma mark Background Image
  85 +
  86 +- (void)setBackgroundImage:(UIImage *) backgroundImage;
  87 +
84 88 @end
85 89
86 90
8 src/launcher/src/NILauncherView.m
@@ -117,6 +117,14 @@ - (void)setBackgroundColor:(UIColor *)backgroundColor {
117 117
118 118
119 119 ///////////////////////////////////////////////////////////////////////////////////////////////////
  120 +- (void)setBackgroundImage:(UIImage *)backgroundImage {
  121 + UIColor backgroundColor = [UIColor colorWithPatternImage:backgroundImage];
  122 +
  123 + [self setBackgroundColor:backgroundColor]
  124 +}
  125 +
  126 +
  127 +///////////////////////////////////////////////////////////////////////////////////////////////////
120 128 - (CGFloat)pageWidthForLauncherFrame:(CGRect)frame {
121 129 return frame.size.width;
122 130 }

0 comments on commit 2e5cff3

Please sign in to comment.
Something went wrong with that request. Please try again.