iphone

Line through UITextField

I have this weird bug with UITextField, sometimes there's a line (actually more of a transparent strip) through it. Does anyone know how to get rid of it? Here's the picture A link to xib file: http://db.tt/7l2Bq42 A link to the code: http://db.tt/DW0mlqQ Edit: The bug is now solved. I'm creating this view programmatically rather t...

popToRootViewController - notification

I have a tabBar controller. Tapping the active tab, by default, calls popToRootViewController on that tab's navigation controller. That is what I want, but I also need to do some customization when this happens. The view controller in question has a nav controller, but is not a subclass of UINavigationController. How can I listen for whe...

Parse HTML that is stored in a NSString

I am parsing a group of post on a blog. I have some HTML that I successfully assigned to a string. I am trying to get the HTML to display in a UITableview. However, I want it formatted. For instance I want <br /> to actually do a line break in the table and <img scr= to actually display the picture. How can I accomplish this. ...

Iphone simulator mkmapview

hi all, this is karthik. I started to work on Iphone application. I would like to load mapview in my application. It loads only the current location with blue Dot image. But It does not show the map on background. Just I can see only that blue Dot Image. Can anyone help me?? ...

using variables for unit testing only

I am writing unit tests for an app for iPhone using objective c. I want to use some variable only when compiling for test case for example #ifdef UNIT_TESTING @synthesize requestFinished, networkAvailable;//etc #endif now where should I define UNIT_TESTING that when I compile for unit tests it should enter this code block.... otherwi...

Reset iPhone App - applicationDidEnterBackground...

I'm looking reset my application completely when it becomes inactive. I dont want any states retained, is there an easy way to do this? Would this be done in the Background Method? or any other of the State Methods within the application delegate? Lemme know, ...

What other way can I deploy an iphone app besides AppStore?

Is there another way to deploy a phonegap app? Thank you! ...

full text search on multiple columns with Coredata on ipad

i use core data in my app. i have 4 columns(id,name,description,specs). I want to full text search across all these columns. Is it possible with core data? If anybody can provide me reference to tutorial or code snippets. Thanks ...

Running activity indicator NOW

I want to start an activity indicator before going to disk I/O. How do I start the indicator NOW, instead of waiting for the next display loop cycle? Or how do I force the display loop before beginning the disk I/O? Dan ...

NSStream Released while reading in, "EXC_BAD_ACCESS" iPhone SDK

I have a view controller that is an NSStreamDelegate, I have a problem when the view is popped from the navigation controller while something is being streamed I get a "EXC_BAD_ACCESS" error. I have tried closing the stream, but it doesn't seem to stop it if there is a stream in progress. What is the proper way to handle this, can you de...

iOs -- require open gl es 2 for upgrade?

The first version of my app runs on all iOs devices. I'm considering releasing an upgrade which will only work on devices which support opengl es 2. Is that as simple as changing the UIRequiredDeviceCapabilities in info.plist? If I do this, what will users on the old device see when they try to upgrade? Or will they even be notified that...

how does I t-pain? (real time audio on iOS)

I was hoping to make an application that did real time voice manipulation like the the T-Pain App. But AVAudioRecorder only enables a post processing from of audio manipulation. Is there another API that will enable real-time audio processing? thanks! ...

UI Webview + Google Maps V3 KML Support?

Hello, For quite some time I've been developing an iPhone/iPad app that uses a UIWebView to display specific KML overlays. Everything has worked fine up until a few days ago, when my KML files suddenly were not appearing on the webview. The javascript used to execute the KML overlay is still working (the map resizes to the intended KM...

iOS Design: Using the delegate pattern in a library

I have a library project that uses ASIHTTPRequest to make URL requests and parse the responses. The library will be used by a separate iPhone app project. If my iPhone controller code responds to a touch event, then calls into the library to make URL requests, how do I best perform the requests asynchronously? In the library, if I use ...

Auto play youtube ipad

hi, im trying to autoplay embed video within ipad. i have this code but it dosent seem to be working: - (void)loadWebUIViewWithYoutubeLink { webView.delegate = self; NSString *htmlString = [NSString stringWithFormat:[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResour...

Orientation is being incorrectly changed in an iPad Application

I have an application that starts with a Login screen (UIViewController) and then once the user completes the login, the rest of the application is managed by a SplitViewController. The problem I'm having is that when the SplitViewController is first displayed, it overwrites the current screen orientation, it forces portrait mode even if...

Error compiling for unit test using google toolbox for mac

Hi my application runs fine but when I try to run the unit tests I am getting this error... 2010-10-19 00:27:49.919 AssignmentUnitTest[27988:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter' Irony is I have searched the whole project & I ...

How to release the elements of an NSArray, loaded by arrayWithContentsOfURL ?

I am too dumb to know the answer to this one - does anyone know the answer definitively? NSMutableArray *happyDictionaryEntries; @property (nonatomic, retain) NSMutableArray *happyDictionaryEntries; -(void) getStuffFromServer { .. self.happyDictionaryEntries = [NSMutableArray arrayWithContentsOfURL:[NSURL URLWithString:aUrl]]; } ...

UIActivityIndicatorView PNG files

Where can I find the PNG files to the iPhone UIActivityIndicatorView animated indicator? ...

How to pass a managedObjectContext to a second and third view...

I am trying to pass a context from my app delegate to my rootview, then to my secondary view. The secondary view is where all the data is really loaded, the rootview is just a quick synopsis of a few key points. When I instantiate the context in appDelegate i log to check if it is not nil: NSManagedObjectContext *context = [self managed...