iphone

i want to parse data using SOAP and libxml2 so how it possible?

i have soap based Xml using that soap message i want to perform libxml parsing also perform lazy loading so how can i perform it please any one have idea about it then please help me. ...

how access mysql remote database

hello, i m creating inapp purchage subscription module, in this app i want to access remote database but problem is that how i connect my objective-c code with the mysql on the server, i am not found any sufficient refrence please help me if any refrence or solution is there. ...

is there any demo app available for iPhone+MGTwitterEngine for twitter integration ?

Hi I want to use twitter with my app. is there any demo app available for iPhone+MGTwitterEngine? ...

What is the better way to switch between portrait and landscape interfaces?

I have two different views (portrait and landscape) for each screen (home, user info, etc). The difference between portrait and landscape views is enough to have each one into a different view and view controller because it's not only a relocation and resizing of controls. To perform the switching between the two views I have a contain...

Rotate a UIImage or UIView to a particular angle, NOT an amount of angle.

Objective-C for iOS. How do I rotate an image or view TO a particular angle. I have tried the two methods below, but both rotate the AMOUNT of angle, not TO the angle. Basically I would like to call a method to rotate to 90' and then say call again of 180', and the image/view to finish at 180', NOT an addition of them both (270') which ...

How to create a const NSDate

I am trying to define the equivalent of DateTime.MaxValue (C#) but in Objective C. I don't want to keep creating NSDates every time I use it so I wish I had it as const. The problem, the compiler returns "Initializer element is not constant" Here is the code static NSDate* DateTimeMinValue = [NSDateFormatter dateFromString:@"00:00:0...

how to set image in button

How set image in button when ever click the button image show me that button run.backgroundColor = [UIColor redColor] I try this but it doesn't work, ...

how to add a uibarbuttonitem in settings bundle?

I would like to add a uibarbuttonitem in the settings bundle in my app. How to implement this? What's more, I want to implement the function dragging the items of settings bundle in my app to adjust the orders of the items. How to implement it? I find the 'General' of iphone settings bundle has such functions. Thanks for any help. ...

iPhone/iPad app rejected because of subscription model ?

Hi there, We intend to launch a free iPhone/iPad app on the AppStore. The content will actually be accessible thanks to a subscription model (login/pwd authentication in iPhone app). The subscription (about 100$ a month) is handled via a dedicated web server. If used without subscription, this app will provide minimum value. Does any...

problem with intergating facebook in my application

The message which is to posted on wall of facebook is automatically open without clicking facebook tab here is code which show message to be post on wall of facebook - (void)postToWall { FBStreamDialog *dialog = [[[FBStreamDialog alloc] init] autorelease]; dialog.userMessagePrompt = @"Enter your message:"; dialog.attachmen...

Access SQL database remotely from iPhone app

I am trying to access an SQL database remotely. Can someone give me a hint or idea about how to do this in the iPhone? ...

Send NSMutableArray as JSON using JSON-Framework

Hi all, I'm using JSON-Framework in my project successfully to decode JSON send from a server. Now I need to do it the other way around and I'm facing problems as the data to be sent is a NSMutableArray fetched from CoreData. When using NSString* jsonString = [menuItems JSONRepresentation] I get the message "JSON serialisation not ...

converting uiimage to negative colors 2nd time crashes the app

Hi! I want show an animation with a negative image and a normal image. To start, the getPhoto method is called and the user can get an image from library or take one with the camera. When the animation is running I want to be able to set the image to a new one, but then the app crashes. -(IBAction) getPhoto:(id) sender { UIImagePi...

'NSFetchedResultsController does not support both change tracking and fetch request's with NSDictionaryResultType'

I have an application that was running just fine under OS3+. But it does not work under OS4. I get the following error message : 'NSFetchedResultsController does not support both change tracking and fetch request's with NSDictionaryResultType' Does it ring a bell to anyone here? (NSFetchedResultsController *)fetchedResultsController {...

uisearchbar image

can i remove Uisearchbar left image and add m new image ...

iphone tiling an image

I have an image which is 1280 x 1664 and I want to use the ScrollViewSuite example that Apple gives us but I need to cut this image up to multiple zoom levels. So, does anybody know how I can tile an image at multiple zoom levels. There must be an easy way to tilling an image to 256x256 without cutting it by hand via photoshop? ...

How to correctly switch view ?

Hi, i know its already allot of info about that in internet, but i'm new to programming and little confused, i need little help please... for example i have 10 views controllers and switching between it with a buttons for example i switching with -(IBAction)goToSecondView:(id)sender { SecondViewController *secondView = [[SecondVie...

Obtaining broken XML followed by full XML from webservice

hi friends In my contact management app i am using webservice to get a large xml data, that contains contact details. i use NSURLConnection class for sending requests. But i am facing problem in while getting the XML . First i get a broken XML and then I am getting the whole XML data . Can anyone figure out what is going wrong in my app...

UITableview Crashes on Scrolling

Hi everyone, i'm now stuck on this problem for days and i haven't been able to figure it out..... I created my project from the navigation based template and it automatically generated a tableview as well. I then added some sections and some rows and tried to fill the rows of the table with simple strings. It all works fine until there a...

xcode error: there is no sdk for "iphoneos2.2.1"

So I downloaded a sample application and I'm guessing it was made before the iphone os 4. And when I try to compile it gives me that error. I don't know if the programming would be any different. Can someone tell me if there were any changes in programming between os 2.2.1 and os 4? How do I make this application compatible for os 4? ...