Hi,
My controller get data from function in delegat:
- (NSArray *)getChapters {
NSMutableArray *list = [[NSMutableArray alloc] init]; //memory leak
if (chapter_statement == nil) {
const char *sql = "SELECT DISTINCT 'Глава '||chapter FROM verses WHERE book=? ORDER by chapter";
if (sqlite3_prepare_v2(database, sql, -1,...
I have an iPhone webapp that uses a cache manifest to work offline. I add the webapp to my home screen, use it (say scroll to a certain location on a page), then go back to homescreen.
When I open the app again, for a brief moment I see where I used to be (at that scrolled location on that page), but then the app "reloads" and I get scro...
I currently have it set up for Xcode to Build & Go onto my iPod using this: http://il.youtube.com/watch?v=CHOVdi-kPV0 (A script to tell Xcode that it doesn't need to codesign). This works, except when the app launches, it closes instantly and Xcode says it failed to launch. You can manually reopen the application and it works 100% after....
Can Cocos2D create non-game apps like, for example, a finger painting application, a questionnaire or other kind of app that is not a game?
If so, what kind of limitations did the library has for this kind of app?
If not, what kind of library do you suggest?
thanks
...
Ok, i made a small application with a small ball bouncing on the screen. That was esay.
Now i'd like to have more than one ball... so i think the best way is to create a new class : the ball.
How can i do it?
Thanks!
...
In my iPad app Viewfinder (iTunes Link), I'm trying to recreate the look of a UISegmentedControl as seen in the footer of Keynote's Build In popover:
The iPad HIG suggests using a bottom-aligned UIToolbar, but the appearance is incorrect. This screenshot shows Black Opaque, but none of the standard styles match Keynote.
Any advice ...
I am having trouble getting my app on a test device.
This is the message I am receiving.
/Users/chance/iCreditCard-AuthorizeNet/build/Distribution-iphoneos/iCreditCardAuthorizeNet.app: object file format invalid or unsuitable
Command /usr/bin/codesign failed with exit code 1
I am not sure what is going on?
Thanks in advance.
...
I have an application with a UITabBar. I have implemented a Photo Gallery using Three20. Everything is "working fine" except that when I switch to the Photo Gallery, the TabBar dissappears.
I am guessing I am going to have to go into the Three20 code and make some sort of modifications.
Any idea if my assumption is correct and / or w...
How can I get the RGB value of a particular pixel in a UIImage?
...
I read about the point/pixels bit in the apple documentation, but still things are not completely clear to me.
What I try to accomplish is placing a toolbar just above the keypad that appears when a textview is touched. The way it was working before IOS4 was by placing the toolbar at position 0,480 and then let it come up by subtracting ...
Is it possible to have iOS4 specific code (ie the MKMapView overlays) in an application, build using 4.0, set the Deployment Target to 3.0, and still have it work so long as the iOS4 code isn't called on a 3.x device?
I am trying to do that now, and only calling the iOS4 code if the device supports it, but I can't get it installed. GDB ...
I've been trying to understand what is wrong with my animation and I still haven't figure it out. I think it should be really straight forward, but there is probably something I'm missing, even after reading lot of examples and documentation.
My problem comes originally form the fact that on the iPhone, you cannot resize layers automati...
I'm developing an iPhone app, and would like to distribute it to some of my non-technical friends and family members for testing and feedback. I've got their UDIDs, and I've added them to my provisioning profile, but they still can't load the app or the profile.
I've got a feeling that they need to have their phones enabled for developm...
I have a UITextField with the adjustsFontSizeToFitWidth property set to YES. I want to get ahold of the current (adjusted) font size. Is that possible?
If not, getting ahold of the actual width of the text (in the adjusted size) would be almost as good.
...
I try to compile but it fails because it find a duplicated definition of class in one of the dependencies and in the main dependency. I googled a lot and i even found the cause of this, due to a bug in xcode and the optimization for amr6 and arm7 code. But i could't found how to solve this. Has anybody use the three20 library with iOS4 ?...
What's the best way to determine which UITextField triggers the method -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField (or any of the other UITextFieldDelegate methods)? I've seen code like this before:
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
if (textField == textFieldCode) {
return YES;
...
Hey guys. So I converted an iphone app to a universal app, and when I try to change the background colors, e.g., view.backgroundColor = [UIColor blackColor];, it would change while running on the iphone. However, the ipad will only show gray. Does anyone else get this? Same thing for interface builder.
Thanks,
...
Hi,
My iphone application is crashing on iPhone 3G with iOS4 device with some of the logs as below:
9 libobjc.A.dylib 0x00006504 objc_exception_throw + 104
10 CoreFoundation 0x000a3e08 -[NSObject(NSObject) doesNotRecognizeSelector:] + 92
11 CoreFoundation 0x000a32a4 ___forwarding___ ...
I have been developing an iPhone app and now I am trying to build the binary.
I have noticed the base SDK is set to iPhone 4.0. Does this mean only iPhone 4.0 users can run the app?
I can change it to the lowest iPhone device 3.2, but how can I change the target so that I can test on the simulator in OS 3.2?
...
I'm (trying) to use HTTP-Live-Streaming in my app and after weeks of re-encoding it seems to work now without errors by the mediastream validator.
On my latest iPod Touch (iOS 4.0) with WiFi the videostream loads in 1sec and switches to the highest bandwidth stream.
On another test device iPhone 3G (iOS 3.0) with WiFi it takes up to 30...