iphone

UITextView Scrolling Problem

I have 90% of my scrolling worked out it's just one case where I cannot get it to work. If the textView.contentSize.height is smaller then the textView height but larger than the space visible with the keyboard up it is not possible to manually scroll the desired content into view, specifically if the user wants go back and edit one of ...

NSURLConnection NSURLRequest proxy for asynchronous web service calls

I have multiple views which make the same NSURLRequest/NSURLConnection request. Ideally, in order to get some code reuse, I'd like to have some sort of a "proxy" which does all the underlying work of creating/executing the (asynchronous) request/connection, setting up all the delegate methods, etc., so I don't have to copy all those NSUR...

Force MapKit use cached map tiles only/disable network programmatically

We have stumbled upon such a problem. We are developing an application for travelling. To make sure the user doesn't spend much money on roaming charges in our app we decided to implement a settings option for user to view cached maps only. So we let the user decide whether he wants to load the maps from internet or he wants to save mon...

NSArray, UITableView

If I want the user to be able to edit entries to a table with number data, (the user would click on a table cell, then on that child view, they would enter a number, and return back to the main table view), I was thinking I would just add entries to a NSMutabaleArray. If so, when the user leaves the application, are those values still t...

Setting Core Data property value with float type

In a test iPhone app I am developing, I am trying to set the value of a float field in my Core Data model. The compiler is giving me an incompatible type error even though both the data type specified in my method is a float and the data type in model is a float. This is the first project where I am using Core Data instead of SQLite 3....

White Text in UITextField = Invisible text in iPhone copy/paste select. Fix?

If I have white text in my UITextField, the selection window (when selecting text) is invisible because the background on the little window is also white. Any way to fix this? ...

Where do I look to learn OpenGL ES for iPhone

I want to learn OpenGL ES but don't know where the best place is to look and learn the fastest and most in-depth ...

iphone application id for facebook connect

In the advanced section of my facebook app that I use for posting feeds to a user's profile from an iphone app, theres a section to enter the "iPhone Application ID". And it says - "If you have an iPhone app using Connect, fill this in with your Apple-provided application ID." I entered my app id. But when I post anything via the ipho...

iPhone SDK NSDictionary and NSArray confusion

I have been trying to get this to work for about three solid days and get my mind around it. Can someone advise. I have built the basics and they all work great but when I try to do that extra bit I cannot get my head around it. I am trying to build a table of technical terms, from a plist. This is an indexed and sections table by the al...

How to use LIKE query in sqlite & iPhone

I'm using the following for a LIKE query. Is this technique for LIKE correct? selectstmtSearch = nil; if(selectstmtSearch == nil){ const char *sql = "SELECT col1, col2 FROM table1 t1 JOIN table2 t2 ON t1.cityid = t2.cityid where t1.cityname like ?001 order by t1.cityname"; if(sqlite3_prepare_v2(databaseSearch, sql, -1, &selectstm...

iPhone Scrolling Help

Well when i try to scroll with opengl es on the iphone the player ship disappears... http://web-geeks.com/help.png i am trying to have one ship that scrolls with the view(the ship that is in the center of the screen) and the other one is just to see if its actually scrolling right... my problem is it that the one in the middle keeps dis...

user credential persistence in iPhone

Hi Guys, Since i'm new to iPhone programming, I want to do something like that: In the main screen of my app, i ask for username and password and authorize user using these info calling .net web service. In this main screen, there is a switch controller "Remember me" so that app will remember the user next time he run the app. My questio...

Converting NSString to Currency - The Complete Story

After over a day of poking around with this problem I will see if I can get some help. This question has been more or less asked before, but it seems no one is giving a full answer so hopefully we can get it now. Using a UILabel and a UITextView (w/ number keyboard) I want to achieve an ATM like behavior of letting the users just type t...

how to set UIView background programmatically

in the interface builder,i can find the background tag,and select the color and the opacity. if I create the UIView programmatically,if I want to change color,I can set the backgroundColor property the question is if I want to change the opactiy,What is the property should I change? Thanks a lot. ...

Where is the iPhone app EULA displayed for the user?

I am planning to submit an iPhone app for certain special purpose calculations. I want to add a legal disclaimer about the calculations somewhere so that the user can see it atleast once before starting to use the app. Should this go into the EULA that may be submitted as part of app submission process? Or should that be a one time scree...

how show animation when going to second view without using navigate controller ?

Hi, In my test application (im learning) i have 2 view controllers. on the first view i have button "go to second view". what i want to do : when user click the "go to second view", the first view move left and go out of the screen and the second view will appear from the right and replace the first view. now, this animation is happen...

How to convert nib/xib to objective C code?

I am just wondering is there a way to convert nib/xib file to ojbective C code? I just want to find the equivalent code to the nib/xib file (I've tried nib2objc, seems the result is not what I am after). Actually I want to compile this example http://developer.apple.com/iphone/library/samplecode/TableSearch/index.html without nib/xib ...

iPhone Fixed-Position UITableView Background

I'm building an iPhone app without the use of Interface Builder. I have set the background of a grouped UITableView in the following manor: self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"groupedBackground.png"]]; I'm trying to fix this background image so that it doesn't scroll with the table cells. Do...

How to call void function in other class?

I want to call one void function into many view controllers so how can i do it? please suggest me some idea. ...

i want to integrate paypal in my application so how it possible?

I am new in iphone application and i have to implement paypal in my application so give me ideas regarding this i have not done anything regarding Paypal. ...