7 February 2012, 12:57 PM

Working to show currency in a readable format


// 1 million coins is easier to read as 1,000,000
$value = "1000000";

// echo as 1,000,000
echo number_format($value, 0, '.', ',');

// echo as 1,000,000.00
echo number_format($value, 2, '.', ',');

// echo as 1:000:000
echo number_format($value, 0, '.', ':');

 




7 February 2012, 12:54 PM

Check to see if string is found. Looking for in string

NSString *input= @"does this string contain the word data";
NSString *find= @"data";

NSRange range;
for (NSString *string in stringList)

{
range = [input rangeOfString:find];
if (range.location != NSNotFound)
{
NSLog (@"feed ready for download");
}else{
NSLog (@"feed broken");
}

}

 




27 August 2011, 1:37 PM

Eleven2 required branding of our Control Panel application with a change. They wanted to customise it to the max. This meant rebranding the whole application and there graphics have made it look very smart and classy. We have recently completed Version 2 for Eleven2 which included an retina upgrade and new features from our Control Panel app. 

You can now download Version 2.0 of Eleven2 on the App Store - Download Now

Take a look at Eleven2 and our other iPhone development work in our iPhone portfolio

 




27 August 2011, 1:24 PM

Duplika come to us and asked for branding of our Control Panel application which works with cPanel®. The application is branded to there spec and works for there clients. Duplika has had many updates to it's application and is currently inline with all the new Control Panel features.

You can now download Duplika on the App Store - Download Now

Take a look at Duplika and our other iPhone development work in our iPhone portfolio




18 May 2011, 9:15 PM

We came across the issue of NSURLConnection not being called until the Modal was stopped using [NSApp stop] and this is the way around it. We have to use RunLoop.

- (void) awakeFromNib {

NSURL *url=[[NSURL alloc] initWithString:@"/linkout.php?url=olliekett.com"];

NSMutableURLRequest *urlRequest=[NSMutableURLRequest requestWithURL:url];

 

NSURLConnection *c = [[NSURLConnection alloc] initWithRequest:urlRequest delegate:self startImmediately:YES];

responseData=[[NSMutableData data] retain];

 

CFRunLoopRun();

}



Then you will need to stop CFRunLoopRun();

- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {

NSString *alert = [NSString stringWithFormat:@"Connection failed: %@", [error description]];

NSLog(alert);

 

CFRunLoopStop(CFRunLoopGetCurrent());

}

 

- (void)connectionDidFinishLoading:(NSURLConnection *)connection {

CFRunLoopStop(CFRunLoopGetCurrent()); 

 

NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];

NSLog(responseString);

 

[connection release];

}




We have a large portfolio of work we have completed for clients. Our portfolio always carries our current new iPhone applications. Take a look

Follow us on Twitter, We aim to provide Live Information - @olliekett
 

© OKD Limited 2010 | Contact Us
OKD Limited is a private registered company in England and Wales.
 
Ollie Kett Designs - Tracking System