Skip to main content

Posts

Flex iOS app version has huge font size?

I have an Android/iOS app that is almost complete, my only issue is that my iOS version has a huge font size on TextFields, whereas the Android version works perfectly? Both apps work fine when I'm testing on my computer, but when I test on the devices (iPod 4G and Galaxy S) the Galaxy S displays the font as shown on my computer but the iPod displays the text in huge letters. It's for an input textbox so it's a big deal as you can't even see what you are typing in the letter are so big!! I'm not sure what the issue is? Is there something I can add/look for to make certain the size? My is primarily coded in AS3 and I've attempted with a CSS file which looks like this: @font-face{ src: url("fonts/Incognitype.ttf"); fontFamily: IncognitypeEmbedded; fontWeight: normal; size: 10;} Any help would be awesome! Thanks!

SQLCipher Working But Incorrect Password

I've just implemented SQLCipher in my app to encrypt one fairly simple database. I followed all of the setup instructions carefully on this tutorial and the project is building and the app is running successfully. However, when I use their sample code to encrypt my database, my password is somehow incorrect and I am now unable to open my database. Here is the code: NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent: @"dict.sqlite"]; if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) { const char* key = [@"BIGSecret" UTF8String]; sqlite3_key(database, key, strlen(key)); if (sqlite3_exec(database, (const char*) "SELECT count(*) FROM sqlite_master;", NULL, NULL, NULL) == SQLITE_OK) { // password is correct, or, database has been initialized NSLog(@"Correct Password :)&qu

UIImage Resize without loss of quality

Im looking for an external library (or a method using Apple frameworks that doesn't destroy the quality) which will let me scale down images. I have tried this 'simple-image-processing-library' but it only works for black and white - I don't know how to make it work for colour images. ( http://code.google.com/p/simple-iphone-image-processing/ ) I have tried Core Graphics, UIKit, the "trevor" ( http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/ ) method - which makes EXTREMELY blurry images and really I don't know what else I can do - I can't continue programming my app without getting at least half-decent image scaling working. I think interpolation is needed to get decent results. Given the recent advances in iOS, I really hope someone can help me. This isn't a problem that only I am having, lots of other people seem to have the same problem, so if someone could solve it here, I'm sure if would appreciated by a

error with scrollToRowAtIndexPath

I am getting an error when using my application that used tableviews, the error looks like this. 2012-01-19 10:19:51.442 bcode[1176:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: row (3) beyond bounds (3) for section (0).' *** First throw call stack: (0x16c3052 0x1920d0a 0x166ba78 0x166b9e9 0x68a136 0x3bfdf 0x6c2fbf 0x6c32d4 0x6c35d7 0x6d2666 0x87890e 0x878c17 0x878c86 0x62c499 0x62c584 0x2718e00 0x13614f0 0x15fa833 0x15f9db4 0x15f9ccb 0x1d05879 0x1d0593e 0x5fba9b 0x2838 0x2795 0x1) terminate called throwing an exception(gdb) What is happening is that when the user drills down my navigation view they can select a cell from the tableview of each view, which later will be used to build a search string. However I allow them to go back and change their selection if they made an error.. this error happens when the user changes the value of the parent view then going into

Alert password field that stores password into the keychain and checks it against original login view controller

This is what I would like to happen I have screwed this up 60 times over now. Ok, I have a login View Controller that handles the login using the username and password and a remember me switch. The login view controller verifies against an API, checks the credentials then proceeds. If the user has selected the remember me switch the password is stored. Next I have a separate deposit view controller. Once the user clicks the deposit button within this deposit controller it pops up an alert with a password field and once the password is entered it checks against the original login screen password to see if they match if they do. It pushes on another view controller and then life goes on. Otherwise if it doesnt match the stored pass and alert with and error is presented. This just doesnt seem that hard but I'm having the hardest time with it I hope I made myself clear and questions let me know. -Justin

Cylinder in OpenGL ES on iOS 5

I am pretty new in OpenGL ES and been searching the paste few days after some examples or tutorials about creating cylinders, but unfortunately without any luck! If anybody has some sample code or anything that might be of any use it would be highly appreciated. Thanks in advance.