You can use link below, hurry up:
Category: iOS
Today’s hot deals
Some free IOS apps for today:
Weather Genie (was 0,99USD) |
![]() |
Some nice deals at AppStore
Paper |
![]() Simple and powerful Paint and Drawing tools support your creative energy without ever getting in the way of inspiration. |
Today’s free apps that might be interesting
Plight of the Zombie |
![]() Plight of the Zombie features: + Play over 30 deliciously brainy puzzles + More levels being offered after release + Be one with your inner zombie as you nom on yummy brains + Support a savory cause by helping end zombie hunger + Appetizing store with plenty of tasteful accessories for your zombies |
Some free iOS apps for today
The Translator HD |
![]() You don’t even have to type your text. Just speak and your speech will be converted into text and translated instantly. You can send your translation via Email or SMS or share it on Facebook or Twitter from inside the app. If you need to communicate in a foreign language you don’t speak, then this app IS DEFINITELY FOR YOU. So, in a nutshell, you can do the following: ✔ Translate your text in the language of your choice. ✔ Send your translation as a message or email. ✔ Share your translation on Twitter or Facebook. ✔ Copy your translation into other apps on your iPhone. |
UITextField gets cleared when clicked
Such small problem, but can cause lot of irritation. To prevent UITextField from being cleared, just set clearsOnBeginEditing property to NO:
inputField.clearsOnBeginEditing = NO;
Error launching remote program: failed to get the task for process
How to display text as texture using GLKit with OpenGL 2.0 in iPhone iOS?
It’s quite easy if you know where to start. There are two ways, you can use UILabel or NSString. With UILabel you can control width and height of rendered texture, also you have words wrap and text aligning.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
NSError *error; UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)]; myLabel.text = @"Hello world!"; myLabel.font = [UIFont fontWithName:@"Helvetica" size:18]; myLabel.textColor = [UIColor colorWithRed:0/255.0 green:0/255.0 blue:0/255.0 alpha:1]; myLabel.backgroundColor = [UIColor clearColor]; UIGraphicsBeginImageContext(myLabel.bounds.size); CGContextTranslateCTM(UIGraphicsGetCurrentContext(), 0, 30); CGContextScaleCTM(UIGraphicsGetCurrentContext(), 1.0, -1.0); [myLabel.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *layerImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); if (error) { NSLog(@"Label::initWithText - Error loading texture from image: %@",error); } |
So step by step:
1. first we need our UILabel, in CGRectMake we are setting our text size (rectangle)
2. then we need our text to display, also font using UIFont class
3. setting text color is also easy, but then comes little trick – you can use “clearColor” with background to make it transparent
4. next thing is to start new image context with UIGraphicsBeginImageContext
5. next 2 line are important if you don’t want your text to be vertically flipped (third parameter in CGContextTranslateCTM is our UILabel height)
6. then we need to render our label using renderInContext
7. and finally we have ready to use texture using UIImage
iOS throws: “sgx error: background gpu access not permitted”
Well, this one can be really painful. But solution is simple, just make sure you are stopping every OpenGL AND sound activity in applicationWillResignActive
function, not in applicationDidEnterBackground
(becouse it’s too late, app is already in background and no OpenGL/Sound is allowed, you can add playing sounds in background into plist but OpenGL won’t be allowed anyway).