iphone

parse string with tags

Hi all, I am receiving a chunk of data from PBX in string with tags included. Something like this: </response><rid>2</rid><name>2101<name><PeerList></PeerList><status>UNKNOWN</status> cont...till it fetches all the names/users from the PBX. what i need to do is to parse this string data to retrieve name & status and update i...

weird error when popToRootViewController

Hi, I have an Navigation-based app where i navigate trough some viewcontroller's. At this moment I have 2 viewcontrollers. In the second viewcontroller, i have a condition that if it's true i pop to the first viewcontroller with popToRooViewController. When I do this the app return's to the rootController but in debugger console appears ...

How to pass parameters through IBAction in iPhone SDK?

I am developing for iPhone the app I am developing has many buttons and I want all buttons to call the same method but with different parameter for example I want button1 to call the method mymethod with the parameter "foo" and button2 should call the same method but with parameter "bar" Thanks for help ...

How can I implement a stock volume chart using core plot on iPhone?

Hi, I'm writing a stock charting application on iPhone using core-plot. What kind of chart should I use to plot the volume chart? Since I will also need to overlay the price charts onto the volume chart, how should I go about doing this? Here's an image for reference (By no means am I trying to reimplement stockcharts functionality, jus...

The Objective-C++ language: where can I find more information about it?

I've been learning C++ for some months now and find it an excellent language albeit its perks. I was wondering what exactly is the so-called Objective-C++ and if it's worth learning it as a main development language to target Apple environments (ie. Mac OS X, iPhone OS). Searching around the web I only found a couple of good articles: m...

How to convey GPS point to Maps(iPhone GPS application) from my application

Let's assume my application has received GPS coordinates of target location from network. How to run Maps(iPhone GPS application) and convey these data to it? ...

ABPersonRef - usage

Trying to create a object for ABPersonRef example: ABpersonRef ref; have included Addressbook and AddressBookUI framework even then when i compile it states 'ABPersonRef' Undeclared Identifier ...

Why is there no NSHTTPURLProtocol class?

Well, NSURLProtocol is pretty generic right? It is for defining all kinds of protocols, isn't it? So why is there nothing like NSHTTPURLProtocol? Instead, there is an informal category on NSURLRequest with specific HTTP stuff. Why did they do that this way? Why no custom HTTP protocol instead? What's the idea behind putting all this st...

How to print the public key of a certificate (Objective-C)

I have a certificate .p12 and .crt and I would like store the public key to print it and use the key with an iPhone application. I have seen the iPhone's documentation, but I can't do it... ...

UIView Animation with Navigation based Project in rootViewController

[UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:[self view] cache:YES]; [[self view] addSubview:self.helpView];//## [UIView commitAnimations]; //This is the code i was tryin...

iPhone App upload

Hi, I'm uploading iPhone eBooks on itunesconnect. This is my problem: Recently Apple requires the Bundle Name, Bundle Display Name and Product Name to be set to Author: Title. there is a technical problem: - the Bundle Name cannot contain spaces - this can be solved by changing the Bundle Identifier using a conversion like rfc1034 ex...

how to insert UIImage into UITextView

hi, im working on a editable notebook type project. it consists some text and images at any time. in UITextView if we add images as subview the frames are fixed. but i have editable option. so i must save image as NSString format in UITextView, but it should look image type in uipart. so please suggest me how can i handle this requier...

Testing enum gives warning: comparison between pointer and integer

I am getting this warning: warning: comparison between pointer and integer when doing the following: if (menuItem.menuType == LinkExternal) MenuType is a custom enum defined as below: enum menuItemType { LinkInternal = 0, LinkExternal = 1, Image = 2, Movie = 3, MapQuery = 4 }; enum menuItemType *menuType;...

how to calculate cos , sin , tan in IPhone SDK?

Hi, How do you calculate trig functions like cos, sin, tan in the iPhone SDK? i tried tan(45) but it returns wrong output? any help? ...

iPhone and it's wireless area

Hello guys! Is there a way to discover other iPhones in the range of it's wireless area? So I give an example. I am staying at the airport. Somewhere near me there is also an iPhone. Me and the other iPhone's owner playing the same game. Is there a way to alert me and the other player that we are so close to eachother? Is this working a...

how to add text and images together

hi, im developing a notebook based application. it consists of notes and images also. im unable to find best way of coding to add images and text together. it is also editable, so im getting confused whether to take scroll-view or text view. is i taken scroll-view there is no editable option. if i take text view we can't change frames o...

iPhone force rotation

Hello, I have been reading a ton on rotation, but not finding a solution to my query. Here goes: I have a portrait application with a tabbar and hidden navigation controller in my tab. At a point in the app, the next view must be landscape. The XIB layout has been done in landscape, so I want to bring up the xib without any transl...

Creating an object to act as a delegate - Objective C

My question is simple actually, how do I create an object to act as a delegate, instead of including the delegate methods in my view? For example, I have x functionality that requires delegate methods, and they're currently setup to use self as the delegate. I'd like to put those methods in their own object so that the delegate methods ...

What kinds of search solutions are there for an iPhone app?

I'm having some difficulty determining what search solution to use in my new iPhone application. The data structure I have is a hierarchy plist that describes a table of contents that link to an HTML file stored locally. I only have two levels in the TOC (Chapter and Section) so it nicely fits into a UITableView with headers and cells. T...

How to hide the popup of URL in UIwebview

I have UIwebview. While keep on clicking on a hyperlink or button on UIwebview , one small bar of URL is appearing. How i can hide that ? In Iphone applications using IUI with UIwebview , this address popup bar is a distraction. Will you please answer me ? Thanks in advance.... ...