iphone

How to pause execution of app until the response of a web service comes in iPhone

Hi there I am working on an iPhone app in which I am calling a web service in my app for accomplishing the same I am creating a NSURLConnection the parsing of data is based upon the response of connection delegate's didReceiveResponse: method. I would like to halt the execution of my code until I get any response from my service but I a...

Why is my opengl-es texture coming out white?!

I have been at this for quite some time now, reading tutorials and so on, and I can't work out what the heck is wrong with this, is anyone else able to help me understand what is going wrong? // Sets up an array of values to use as the sprite vertices. const GLfloat spriteVertices[] = { 20.0f, 50.5f, 305.0f, 50.0f, 10.5f, 2...

NSMutableArray member item randomly disappears

Hi there, I'm having very strange issue with NSMutableArray class (as it seems at least). I have UITableViewController with custom data source class, which loads data from underlaying model class. Now I need to incorporate AdMob ads to the table. There can be one or more ad positions, typically at the top of the table and at the 3rd row...

How to log nsxmlparser

I'm parsing an xml from an url, by rssParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL]; [rssParser parse] How to NSLog it so as to see the xml in console??? If i use NSLog ("%@",rssParser); i'm showed wit 'XMLParser x 4d562' in the console ...

iPhone Force Textbox Input to Upper Case

How do I force characters input into a textbox on the iPhone to upper case? ...

how to convert nsstring to uicolor?

I have one string(NSString) in string there is one value like string=@"black" now i want to use textcolore using string.I have written below code. txtView.textColor=[UIColor string]; But it not working can suggest me? ...

Uncenter MkMapView

I am trying to "uncenter" the map view and remove all annotations. the reason for this is that the mapView will be used by different view controllers to display different annotations and locations. What's happening now is that i am using the "remove annotations" method and i removes them, but the map stays centered on the spot and thus w...

How to draw text in iPhone OpenGL ES

What is an easy way to draw text in an opengl view. I need to be able to draw any/all characters (ie support not just english). Apple has a sample on how to do this for OpenGL (not ES) called GLstring.m which is neat, but cant be translated to iPhone. Not all of us are writing applications just for Americans, ie Techniques that involve ...

Repeat Problem of tableview cell during scrolling in iphone

There are 5 cells and each cell has one dynamic label. the height of cell is defined as per label content using heightForRowAtIndexPath method. Now, 3 cells are being displayed. When I scroll for next cells then cellForRowAtIndexPath is called once and In the output any one (4 OR 5) cell is displayed correctly but another has 1st cell co...

Align UIView to bottom of parent's frame / view

How can I align my UIView so that it aligns to the bottom of parents frame? Normally I would create it and move to the bottom of the view, in a full screen view that is 460px tall: myView = [[MYView alloc] initWithFrame::CGRectMake(0.0f, 300.0f, 320.0f, 160.0f)]; But how can I set this up so that if the available space for my iPhone ...

How to display encodeed string in a different language?

I am fetching directory name from a ftp server. This directory name is encoded. Now I want to display this directory name in a diffetnt language. Is it possible? If yes, please give me suggestion. ...

iphone sdk: How to get rid of the action sheet in UIWebView?

Hi guys I have a UIWebView and when I press a textual link (for at least a second) some kind of UIActionSheet appears with 3 buttons (open, copy and cancel) - Is there a way to prevent it from appearing? Thanks ...

iPhone - UITableView - lost data if i go back

Hello! I have a TabBar, NavBar, SearchBar with ScopeBar on my screen. I can search data via a remote server and list the content. So I have a NSMutableArray listContent and a filteredListContent like in the example of Apple (TableSearch - http://developer.apple.com/iphone/library/samplecode/TableSearch/index.html): Now I added in - (...

uiwebkit error 101

Hello, I have a search box which takes keywords in Hebrew and English and searches in wikipedia for the corresponding keywords. If I type in English it works well but when I type in Hebrew it shows this error: when I type Hebrew keyword url looks like http://he.wikipedia.org/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93%3A%D7%...

Does hosts file exist in iphone? How to change it?

I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network. Now I need to test it with my iphone, the problem is that my iphone does not recognize that server due to the missing configuration for dns. Within my mac or windows, I simp...

How do I change the scrolling distance of a UIView to be like Safari app

I want to have a UIScrollView that scrolls less then the full screen so that it looks like the Safari app does when you go to make a new tab or look at all the tabs. What property would this be? ...

MediaWiki styling for iPhone

When you visit en.wikipedia.org with an iPhone you are forwarded to en.m.wikipedia.org which is formatted beautifully for the device. I have MediaWiki on my own server and I'd love to have this formatting available when I visit my site with my iPhone. Is there an easy way to enable this? I've gotten as far as www.mediawiki.org/wiki/Manua...

How to animate a polygon mask with performance?

Hi, I'm having a performance issue. I've created an UIView and overwrited it's drawRect function. At this function, I was drawing an image (big one), and over that, an white square at the entire screen with a polygon inside it, with CGContextEOFillPath. The result is an white screen with portion of the image (defined by the polygon) dis...

Capturing back click in navigation controller

In a navigation controller app, assuming you've assigned a title to the root controller, the pushed view will have a back button with that title in the top left of its navigation bar. That is automatic. How can I execute code based on the click event of that back button? ...

Where can i find information about upcoming iPhone developer events?

I need a list, or sg. like it about upcoming iPhone developer events...can someone help me? ...