iphone

iPhone: Parsing large xml files and adding the content to the sqlite db

I'm using libxml2′s DOM parser in my iPhone to parse a XML file with 100'000 lines and put the content into a db! This process takes several minutes to complete! Too much to be user friendly! Im looking now for any hints on how to make this process more efficient! I guess, that the biggest part of the time gets lost writing the data into...

Making chat server with .NET and Objective-C in iOS?

I want to make a chat server by using .NET technology (C# and SQL server) and chat clients with iOS Apps and C# Apps but i don't know where to begin :( Anybody can tell me what i need to know to do it :( ...

JQTouch returning to same position after watching video

Hi, I've been playing with JQTouch for a while, not withstanding the lack of documentation I've managed to get something working for my site http://iphone.bmxmdb.com but I have a problem, after watching a video on an iPhone, the app returns to the front screen and loses where the user was navigated to. Is there anyway of storing ...

How would I reverse this equation?

I’m using this equation to convert steps to estimated calories lost. I now need to do the opposite and convert total calories to estimated steps. This is the equation I’m using for steps to calories: +(CGFloat) totalCalories:(NSUInteger)TotalStepsTaken weight:(CGFloat)PersonsWeight{ CGFloat TotalMinutesElapsed = (float)TotalStepsT...

HTML5 Cache Manifest in Mobile Safari

I've setup an HTML file with a cache manifest, an HTML5 doc type, and verified the manifest file is returning the correct mime type. The file, however, does not cache and therefore does not work in offline mode on Mobile Safari on the iPhone. The simple HTML file is at the URL below. http://www.joeldare.com/i/calories/new/index3.html ...

Loading screen won't appear on device - Cocoa OS

Hey all, I've created a loading/splash screen that loads at the beginning of my app, just simply showing the company name. It works great on the simulator, but for some reason I just get a black screen when I load the game on my itouch. Any Ideas? I use the sleep(5); method of creating a loading screen. ...

fbconnect logout button iphone sdk

i have the default login button of fbconnect sdk . i tap it and i connect then i post to my facebook profile something. when the post is finished i see that the button has changed to logout . how can i detect when the user presses the logout button in order to dissapear another button i have on my uiview? ...

iphone: appID creation problem ?

Whenever I create an app ID on my provisioning profile, the 10 digit bundle seed ID keeps getting imported in front of it... e.g. YVW2UMA3HV.com.yourcompany.ytj ..As a result, the project i'm trying to compile (which as bundleID com.yourcompany.ytj gives an error in Application Loader. ..Is there a way to create an appID without the '...

Cocoa Touch - Resources Question

Hey all, I have a selector that searches the mainBundle for all .aif files, and allows the user to select them. This works fine, but then I removed some of the files from the project and folder, yet they did not disappear. Is there any way to maybe recompile it or something because It's now plagued with sound files that I don't need. Th...

mp4 converted video not playing on iphone & Android phones.

Hi There, I am facing problem in properly converting the video for iphone & Android phones. I have converted the video to mp4 using following command: ffmpeg -i Chili.wmv -s 432x320 -b 384k -vcodec libx264 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -bf 0 -flags2 +mixe...

OpenGL ARB function in Mac

I want to use glCurrentPaletteMatrixARB in Mac application. OpenGL library is imported GLEW library and GLUT and, glewInit() function calling was successful. glWeightPointerARB function is able to call, but my application crashed in glCurrentPaletteMatrixARB. Reason is function pointer value is null pointer error. Extension string is no...

HTML and NSString

I use the youtube api to get descriptions from videos but sometimes not the full description shows up becuase of a @amp; how do I fix this? BTW I use NSXMLParser. ...

Is it worth it to translate an [iPhone] / [android] app into Spanish?

I'm doing a little research about this subject. It's for my blog. So, I'm looking for some experiences about this. I have the "user's side" of the story, I think they want it better if it's on Spanish. But, what about the programmers? Do you make your programs multi-language? Why? Why not? Are you ok with paying somebody to translate y...

turn left or right with CLLocationManager ?

Hi everyone .. iam trying to turn a view in x or y Axis via CLLocationManager ! is it possible ? my application run on iPad so there is no gyroscope , if use this code : - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading { CGFloat heading = -1.0f * M_PI * newHeading.magneticHeading / 180.0f; m...

Objective C on Windows system

Hi All! :) Can you tell me what software I must used to develop for iPhone on Windows Operating System? ...

copy smaller array into larger array

I have two arrays of chars, allocated as follows: unsigned char *arr1 = (unsigned char *)malloc((1024*1024) * sizeof(char)); unsigned char *arr2 = (unsigned char *)malloc((768*768) * sizeof(char)); I would like to copy arr2 into arr1, but preserve the row/column structure. This means that only the first 768 bytes of each of the fir...

Convert MongoDB BSON ObjectId (oid) to generated time in Objective-C?

I've found this: function: http://github.com/timburks/NuMongoDB/blob/master/src/bson.c#L128 bytes: http://github.com/timburks/NuMongoDB/blob/master/src/platform_hacks.h#L55 struct: http://github.com/timburks/NuMongoDB/blob/master/src/bson.h#L70 But how exactly would I use this for my iPhone app that gets the oid as a string from the se...

Xcode send data from text input through a post function in php

Is it possible to send text from an xcode input and have the data sent through a php function? ...

Comparing to NSDates not working, incompatible pointer types

Hey i am trying to compare the date on which the user opens the app to the date it is currently. (basically, how long they've had the app in days) Here is the code: - (NSInteger) daysAfterDate: (NSDate *) aDate { NSTimeInterval ti = [self timeIntervalSinceDate:aDate]; //#1 return (NSInteger) (ti / D_DAY); //#2 } //#3 -(void)l...

setApplicationIconBadgeNumber when called multiple times does not update the badge

Hi! I am working on an application where in I have to update the badge shown in the app icon multiple times. However, what I have noted is that, the setApplicationIconBadgeNumber api just works once during the lifetime of the app. I have tries using the UILocalNotification, and it works then but, I dont want to follow that route. Have y...