iphone-sdk-3.0

Reading id and value for a Node in NSXMLParser

Dear all, I have an XML node like this : < State id="1" > AA < /State > how can i read the value 'AA' ? I'm able to read the id value "1" using - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary ...

iphone sdk button tags?

I can't understand the logic og button tags. Can someone tell me how to use button tags? For eg. There are two buttons on my view and I want to print something depending on their tags like: if(button.tag==???)x{ }etc. ...

UINavigationBar with OpenFlow horizontal usage problem

He There, I tried to use OpenFlow in my project. Actually, I have a problem with It, when I tried to use UINavigationController and OpenFlow together on same UIViewController (Actually just create a navigation based project), It is only working vertical orientation, when I try to change device orientation to horizontal, It is going to b...

How to add animation on the UIButton?

I want to change the UIButton background color from black to white color. But I want to change it in animation. For example... black > grey > white. Is there any simple way to do so in iPhone SDK? thank you. ...

How to detect or define the the orientation of a pinch gesture with UIPinchGestureRecognizer ?

Hi. I'm using UIPinchGestureRecognizer to detect pinch gestures, something like: - (void) initPinchRecon { UIPinchGestureRecognizer *pinchRecognizer = [[[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(Perform_Pinch:)] autorelease]; [self addGestureRecognizer:pinchRecognizer]; [pinc...

How to send png images from iPhone to web service

Hey all, I have been trying to send .png images from iPhone to web service. I have come so fas as converting the .png image into a byte[] array. I am clueless as to how to use soap or HTTP get/post to transfer the byte[] image to the web service. Any help would be greatly appreciated. Sayeed ...

How to change value of IBOutlets when using Tab Bar Controller

I'm using the Tab Bar project in Xcode to create an app. It gives you a FirstViewController class and xib file. In the xib file there is a UILabel that just says "First View" in the center. I want to know how to programmaticly change the text value of the label that is in a viewController owned by a Tab Bar Controller using a method? ...

viewWillAppear method is not called in tabbar controller with navigation and tableview

i Created a tab based application. in my application i used three tabs with navigation and tableview and i created one right bar button on navigation bar. when touch the button, it displays the one view. to display the view i used the code EASAppDelegate *delegate = [[UIApplication sharedApplication] delegate]; EventSearchViewControlle...

how to convert NSString to NSInteger

Hi friends.. I have a NSString(e.g. 'P1') I have to add 1 in this NSString to get 'P2'. How will i do this?? Thanks for any help. ...

How to locate which programmatically created button is clicked?

Hi, I am doing an application on a Multiple Choice Question (MCQ) where I have to get questions, answers from a webservice. I have 1 question with 4 options, among the 4 options, I have 1 correct answer. Each of the options, I created a button programmatically. This is how I did it: UIButton *button = [UIButton buttonWithType:UIBu...

EXC_BAD_ACCESS on device, but fine on Simulator

I have a scroll view app which runs fine on the simulator, however, when installed on the device, it gives me an EXC_BAD_ACCESS, when i attempt to scroll one page. I have ran it through Instruments with Allocations and Leaks, but nothing is leaked and no zombies are messaged... i'm just curious what could cause such a difference in simul...

iPhone images display

Hello, I want to know if there is any way to append something like white border around iPad image thumbnails without too much performance issues? Something like in XHTML\CSS where you get Polaroid like appearance.I think you may have got faint idea. Any guidance is highly appreciated. ...

CATiledLayer drawing problems on iPAD.

I am developing an application on iPAD to display pdf. I am using CATiledLayer to draw PDF pages. at a time i am displaying only one page of the pdf.if user clicks next or prev button i am displaying the pages accordingly. I have subclassed the CATiledLayer to make fadeDuration as 0.0. I am facing 2 problems. 1. my application is work...

place contacts into black list from my iphone?

hello everyone, I have needed to place contacts into blacklist. Does anyone knows how can i place contacts in blacklist from my iphone ?? Any Private APIs ??? Thanks in Advance...... ...

Can a UIWebView raise events to the containing view controller?

I have a UIWebController embedded in a UIViewController. I write the HTML code for the UIViewcontroller so I have complete control over the HTML page. When the user clicks a button in the HTML page - can the containing UIViewController be notified about it? Can the UIWebView send/raise an event to the UIViewControler? ...

Playing mp3 stream from winamp server

Hi all, I am developing an app that requires playing a web radio stream. I have been reading online on how to do that and it seems that there are many ways like the AVAudioplayer, the Audio File Stream services and the Audio Streamer project from Matt Gallagher. Since i just started reading about it maybe some of them are the same, but ...

How to find iOS 4 only code in iPhone project

Hi i have a iPhone Project with Base SDK 4.0 and Deployment Target set to 3.0 with XCode 3.2.3. Is there an "easy" way to find out whether i use iOS 4 only API calls in my Source Code. I'm aware that i could install an old XCode to run my project against an e.g. 3.1.3 Simulator, but i hope there is a simpler way for checking this. Any...

Display a uiview object in a window

hi am trying to display a uiview class object in the window but the thing is that its not being displayed don't know for what reason am not able to sort out please do help me out, here's my code @interface Myview : UIViewController { UIView *move_view; UIButton *btn; } @end #import "Myview.h" @implementation My...

How can I scroll programmatically to the bottom in a UIWebView?

I know a similar question has been asked before but it seemed never been answered. I have a UIWebView and add some content by string. I use UIWebView because I add some images to it dynamically and also use other HTML features. This example code is simplified. NSString *myHtmlString = @"SOME LONG TEST STRING 1234567890 123456789 0123456...

Which iphone version to target?

I built my app targeting 3.1.2, but now I'm getting close to releasing it I thought maybe I should target a lower SDK version, so more people can use it. How low should I go? It works when I test it in the Simulator at 3.0, but my device is 3.1.2. I don't really know the deal with penetration numbers and wether it's best to target th...