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
NSString *viewName = [_views objectAtIndex:indexPath.row]; | |
Class viewclass = NSClassFromString(viewName); | |
if (nil != viewclass) { | |
UIViewController *detailView = [[viewclass alloc] initWithNibName:viewName bundle:nil]; | |
[self.navigationController pushViewController:detailView animated:YES]; | |
[detailView release]; | |
} |
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
NSData *encodeData(NSData *input) { | |
char encodeArray[512]; | |
memset(encodeArray, '\0', sizeof(encodeArray)); | |
encode([input length], (char *)[input bytes], sizeof(encodeArray), encodeArray); | |
return [NSData dataWithBytes:encodeArray length:strlen(encodeArray)]; | |
} |
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
- (IBAction)Login:(id)sender | |
{ | |
MGSimplenoteLogin *login = [[MGSimplenoteLogin alloc] init]; | |
loginStatus.text = @"Logging in..."; | |
login.email = self.userName.text; | |
login.password = self.password.text; | |
[login addObserver:self forSelector:@selector(login) success:@selector(loginSucceeded:) failure:@selector(loginFailed:)]; | |
[login login]; | |
} |
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)addObserver:(id)obj forSelector:(SEL)selector success:(SEL)success failure:(SEL)failure { | |
[[NSNotificationCenter defaultCenter] addObserver:obj selector:success name:[self successNotificationNameForSelector:selector] object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:obj selector:failure name:[self failureNotificationNameForSelector:selector] object:nil]; | |
} |
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
NSString *CellIdentifier; | |
if (indexPath.row == X) && (indexPath.section == Y) { | |
CellIdentifier = @"CellWithSubview"; | |
} else { | |
CellIdentifier = @"Cell"; | |
} | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
if (cell == nil) { |
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
CGSize constraint = CGSizeMake(200000.0, 10.0); | |
CGSize size = [sourceLabel.text sizeWithFont:[UIFont italicSystemFontOfSize:7.0] constrainedToSize:constraint | |
lineBreakMode:UILineBreakModeTailTruncation]; | |
sourceLabel.frame = CGRectMake(318.0 - size.width, | |
quantityPickerView.frame.origin.y, | |
size.width, | |
size.height); |
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
<div> | |
<p style="font: 17px Helvetica,Arial,sans-serif;">Check out this application on the App Store:</p> | |
<table border="0"> | |
<tbody> | |
<tr> | |
<td style="padding-right: 10px; vertical-align: top;"><a href="http://itunes.apple.com/us/app/sugar-rush-for-iphone/id429075351?mt=8&ls=1"> <img src="http://a988.phobos.apple.com/us/r1000/035/Purple/6d/5e/fd/mzm.aeldkogr.170x170-75.jpg" border="0" alt="Cover Art" height="170" /> </a></td> | |
<td style="vertical-align: top;"><a style="color: black; text-decoration: none;" href="http://itunes.apple.com/us/app/sugar-rush-for-iphone/id429075351?mt=8&ls=1"> | |
<h1 style="font: bold 16px Helvetica,Arial,sans-serif; margin: -2px 0 3px;">Sugar Rush for iPhone</h1> | |
</a> | |
<p style="font: 14px Helvetica,Arial,sans-serif; margin: 0 0 2px;">MC Development</p> |
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
<div> | |
<p style="font: 17px Helvetica,Arial,sans-serif;">Check out this application on the App Store:</p> | |
<table border="0"> | |
<tbody> | |
<tr> | |
<td style="padding-right: 10px; vertical-align: top;"><a href="http://sugarrush-app.com/buy"> <img src="http://a988.phobos.apple.com/us/r1000/035/Purple/6d/5e/fd/mzm.aeldkogr.170x170-75.jpg" border="0" alt="Cover Art" height="170" /> </a></td> | |
<td style="vertical-align: top;"><a style="color: black; text-decoration: none;" href="http://sugarrush-app.com/buy"> | |
<h1 style="font: bold 16px Helvetica,Arial,sans-serif; margin: -2px 0 3px;">Sugar Rush for iPhone</h1> | |
</a> | |
<p style="font: 14px Helvetica,Arial,sans-serif; margin: 0 0 2px;">MC Development</p> |
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
@interface MarchingAntsView : NSView { | |
NSPoint clickLoc; | |
NSRect selection; | |
} | |
@end | |
@implementation MarchingAntsView |
OlderNewer