-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIImage+ImageFile.m
More file actions
27 lines (22 loc) · 835 Bytes
/
UIImage+ImageFile.m
File metadata and controls
27 lines (22 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// UIImage+ImageFile.m
// CSPopupView
//
// Created by Mustafin Askar on 29.04.13.
// Copyright (c) 2013 askar. All rights reserved.
//
#import "UIImage+ImageFile.h"
@implementation UIImage (ImageFile)
+ (UIImage*)imageWithImageFile:(NSString*)imageName{
UIImage *image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle]
pathForResource:imageName
ofType:@"png"]];
return image;
}
+ (UIImage*)imageWithImageFile:(NSString *)imageName extension:(NSString *)extension{
UIImage *image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle]
pathForResource:imageName
ofType:extension]];
return image;
}
@end