iphone

Objective-C XML: How to get the value between two tags?

Hello. I'm trying to figure out how to get the value between two tags of an XML text that is being parsed in objective c. For example, if you have: <tag>thetext</tag> I want to be able to get thetext This seems impossible with the NSXMLParser class or its delegate. Any help would be appreciated. Thanks! ...

determine ipad device

I am writing a universal app for both iphone and ipad. How do I determine if the device is an iPad. I have used this link to determine the iPhone type (3G, 3GS). http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk ...

White UITabBar icons needed

Hi, I've written a green UITabBar, but the problem I've got now is that the icons have still the same color and you can't see them very good. Is there any solution to change the color of the icons? Or add my own subview with image inside? Thanks for help ...

how to connect iphone with monitor?

I have implemented iphone application.i want to present in monitor.How it possible? Please help me for this problem ...

how to obtain CGContextRef from UIView or UIWindow for debugging outside draw method?

[This is my first post here (but I've browsed answers many times; thanks to all for a very useful site). If I'm committing any great sins with this post, please forgive me and point me in the right direction.] I am trying to debug some complicated startup code in my iPhone application; I really need to draw some images to make debuggin...

how can i integrate ticker in iphone application

hi.. i want to run my view based window application with ticker.i have code for ticker but it is in cocoa.. so how can i integrate cocoa application in my project.? this is TickerView.h file #import <Cocoa/Cocoa.h> @interface TickerView : NSTextView { @private NSTimer *mTimer; double mOffset; } - (NSString *)stringValu...

NSString get 100 characters from start

How to get a substring from NSSTring from index 0 to 99. i.e. first 100 characters ...

App skeleton with UINavigationController outside of AppDelegate

Hi Still a newbie when it comes to navigation controllers I have ran into a problem I cant solve for my iPhone App. Instead of trying to solve current issues with too much code in too many files I thought I would take another approach. What I want is a something similar to a tabBarController, but without the tab bars as they take too m...

unable to launch app on ipad simulator in sdk 3.2.3

Hello all i have an xcode project built from sdk 3.2.2 for ipad and iPhone. I have sdk 3.2.3. in my system when i run that project in 3.2 configuration the app launches in iPhone mode. While it should have launched in iPad mode. By analyzing the classes i came to know that there is only one appDelegate while in 3.2.3 in the universal app...

UIWebView content with scrollable iframe

I have a html page with iframes where part of the page is scrollable while other parts are not. Is there a way to display this in a UIWebView and allow scrolling these iframe sections? So far I see that only the entire page is scrolling. ...

finding a number in array

I have an Array {-1,0,1,2,3,4...} I am trying to find whether an element exist in these number or not, code is not working NSInteger ind = [favArray indexOfObject:[NSNumber numberWithInt:3]]; in ind i am always getting 2147483647 I am filling my array like this //Loading favArray from favs.plist NSString* favPlistPath = [[NSBund...

how to compress image programmatically

Hi all, I am receiving images from xml feed they are very large in size how can i compress them before displaying them in table-cell. my code is int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1]; imgstring=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"image"]; NSURL *url = [NSURL URLWith...

iPhone Parsing JSON : delegate methods

Hi everyone. I'm using this JSON framework. It's working well but I would like to put a loading view on my main screen to show that the iphone is downloading datas. I have searched for some delegate methode like - jsonBeginParse and - jsonEndParse but unsuccessfully. Have got an idea ? Thanks a lot ! ...

slider(ticker) in iphone

hi.... friends please help me from this condition I want the bottom slider like ticker which run it self for that i tyep the code but it run with touch event (but I want this move it self ) the code here this for SlideMenuView.h file @interface SlideMenuView : UIView <UIScrollViewDelegate> { UIScrollView *menuScrollView; UIIma...

Volume control using UIslider Iphone??

i am creating a application in which sound is played when a button is pressed and using a UISlider with which volume can be adjusted.Sometimes the volume of sound is too high and sometimes its too low even after increasing the volume of iphone to the full.How can i keep the volume to always high?? any possible way to integrate system vol...

Launch iPhone setting screen from Application?

Hi all, I am developing an application where i want that upon a press of button iPhone settings screen should open. Is there any restriction from apple to access it? Is it possible or not,If yes then how? ...

How to tell how may unique elements there are an NSArray

I've got an array (actually a mutable array) of NSStrings, and I want to find out how many unique elements the are in the array. For instance, say the array is made up of: Orange, Lemon, Lemon, Orange, Lemon Then there are just two unique elements (Orange and Lemon). And this array: Paul, Steve, John, Harry, Paul, John ..has four ...

NSString for uiviewcontroller

I want to declare nsstring in uiviewcontroller.h file and use this string as whole uiviewcontroller , we want to set and get string values using these strings. I defined viewcontroller .h file like this NSString *SelectedString; For some time it released string values and crashes app nothing shows in log. can anyone help me ? ...

NSURL not getting allocatd with NSString

Hi all, This' strange because all my other NSUrls in program are working properly but this one isn't getting allocated with NSString. I'm using: urlStr_ = [NSString stringWithFormat:@"http://192.168.10.2/justmeans/trunk/appaddgoodwork?gencode=%@&amp;deviceid=@%@&amp;sessionkey=%@&amp;userid=%@&amp;updatetext=%@&amp;companyid=%d&amp;ser...

how to call WCF Service method in Iphone

I have made a WCF service(service1.svc) have 2 methods. 1.GetData() 2.ProductDetails(string ProdId) Both returns a file in JSON format when i do this. http://192.x.x.x/Demo/Service1.svc/GetData http://192.x.x.x/Demo/Service1.svc/ProductDetails?prodId=P2 now i want to use these methods in Iphone. & i call them as- NSDictionary *ar...