This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIScreen+Utils.m | |
// LiveGO | |
// | |
// Created by Ahmet Ardal on 2/3/11. | |
// Copyright 2011 MessengerFX. All rights reserved. | |
// | |
#import "UIScreen+Utils.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
@method | |
@abstract adds images to the queue and starts the operation queue to download them | |
*/ | |
- (void) addImagesToQueue:(NSArray *)images | |
{ | |
NSLog(@"AsyncImageLoadingViewController::addImagesToQueue called"); | |
[self.imageQueue addObjectsFromArray:images]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) initializeTimerWithNSTimer | |
{ | |
CGFloat interval = 1.0f / 50.0f; | |
[NSTimer scheduledTimerWithTimeInterval:interval | |
target:self | |
selector:@selector(animateBallNSTimer:) | |
userInfo:nil | |
repeats:YES]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[SSLocationManager sharedManager] addDelegate:self]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
static NSString *cellId = @"CopyableCell"; | |
CopyableCell *cell = (CopyableCell *) [tableView dequeueReusableCellWithIdentifier:cellId]; | |
if (cell == nil) { | |
cell = [[[CopyableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId] autorelease]; | |
} | |
[cell setIndexPath:indexPath]; | |
[cell setDelegate:self]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
static NSString *cellId = @"EmailableCell"; | |
EmailableCell *cell = (EmailableCell *) [tableView dequeueReusableCellWithIdentifier:cellId]; | |
if (cell == nil) { | |
cell = [[[EmailableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId] autorelease]; | |
} | |
[cell setIndexPath:indexPath]; | |
[cell setDelegate:self]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - | |
#pragma mark UIWebViewDelegate Methods | |
- (BOOL) webView:(UIWebView *)webView | |
shouldStartLoadWithRequest:(NSURLRequest *)request | |
navigationType:(UIWebViewNavigationType)navigationType | |
{ | |
if (_sessionChecked) { | |
[self log:@"session already checked."]; | |
return YES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol SSPhotoCropperDelegate<NSObject> | |
@optional | |
- (void) photoCropper:(SSPhotoCropperViewController *)photoCropper | |
didCropPhoto:(UIImage *)photo; | |
- (void) photoCropperDidCancel:(SSPhotoCropperViewController *)photoCropper; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) viewDidLoad | |
{ | |
[super viewDidLoad]; | |
SSCheckBoxView *cbv = [[SSCheckBoxView alloc] initWithFrame:CGRectMake(20, 20, 200, 30) | |
style:kSSCheckBoxViewStyleGlossy | |
checked:YES]; | |
[cbv setText:@"Check updates?"]; | |
[self.view addSubview:cbv]; | |
[cbv release]; |
OlderNewer