iphone

How to compare the instance of UITextField

Hi all, I have 3 UITextFileds on a view, and I want to apply logic in UITextFieldDelegate method only in two of them, how do I determine the UITextField that triggered the call backs? Many thanks in Advance! ...

Detecting iPhone app version update?

I'd like to determine when new versions of my app are available on the Appstore and display some form of notification to the user when this happens - perhaps a UIAlertView or similar - and wondered whether anybody knew of any pre-designed frameworks for doing this? I found the StoreKit provided by iPhone SDK but it seems to only return a...

Gradient backgrounds

When is it recommended to use gradient created by the iphone itself and when is an image the better choice? ...

UITextView.text property doesn't update first time, and then clips or doesn't display when it does

I'm trying to get the contents from a dictionary into a UITextView. The dictionary contains molecular masses paired with percentages, for example: 24 -> 98 25 -> 1.9 26 -> 0.1 I have an NSArray containing the keys from the dictionary, sorted in ascending order. So, here is my code to generate the string to set as the textField.text pr...

crashing my application due to NSAUTORELEASENOPOOL

i am using navigation controller and my first view contains tableof data of chapters type and then when user selects any one of those it goes to next view of topics type and when user selects any one of these it should show some table of data consists section headers and ruler items... application getting crashing when i selects topics ...

Automated check for calls to APIs that are not supported in iOS < 4.0?

I'm trying to keep my app compatible with iOS 3.1 while also adding support for some new features of iOS 4, like limited-duration background tasks (beginBackgroundTaskWithExpirationHandler:). Of course the proper way to do this is to check respondsToSelector: for each appropriate call, but I'm still afraid I'll miss a call here or there...

UITableView + NSMutableArray weird behavior

Hi, I'm currently trying to populate an UITableView from a plist downloaded from the internet. The plist gets loaded into a NSMutableArray and then saved as a file, which works fine. When trying to populate my UITableView with it though, I run into trouble. The UITableView displays only the first 8 entries from the *plist file (but t...

iPhone Menu UIView

Whats the best way to create a menu for my application now that it's already partially complete? The application basically consists of a navigation controller and drill down table. I want to create a view above the navigation controller with a couple buttons that the user could also return to by touching a button somewhere on the nav bar...

How to fix sleep on objective C sdk 4.0?

I have a warning on objective c for iphone it says "implicit declaration of function 'sleep'" All I have is a sleep(1); for the splash in the applicationDidFinishLaunching I didn't have this problem in prior versions of the sdk I know is just a warning, but I had problems before with apple for not having 100% success Thanks for every...

setting dynamic x coordinate of second lable in xcode objective c

Hi Guyz, i have a problem that i have two lables, 1) will contain a long text 2) this will be just More button (link) so i want that when the first text ends then the second label starts right from where it end. but the problem is that the text is variable so i could not find any way to make it dynamic. example text of first row "t...

Change the toolbar title in UIImagePicker

Hello, I created an iPhone application which can take photo and allow the user to edit them (moving and scaling), by setting the property "allowsEditing" to YES. My problem is that while editing, the bar at the bottom has a too long title (in french). http://uppix.net/d/8/8/12ee1d66af14d3f99ea65d7b6091b.png So do you have any idea o...

Can CoreData models be exported to use in another app?

Is there any way to export a CoreData model file (i.e entities description: *.xcdatamodeld) to another project. Because re-recreate all entities is boring :-) ...

calculate text for a height, paginate the content

HI I am trying to paginate the content of UIWebview so i disabled the scroll then the second page will the current view height. The problem is sometimes the last line of page gets clipped so the first line of the next page too.I want a solution for this situation, if it occurs,it should left the line for the next page OR Is there any so...

How can I modify the target of the default Back button on iphone?

I want to have the default shape of the back button, but that makes my program enter a loop at some point. The code is this for modifying the text of the back button, written before the initialization of the view. UIBarButtonItem *newBackButton = [[UIBarButtonItem alloc] initWithTitle: @"Back" style: UIBarButtonItemStyleBordered target:...

Touchable info (i) button on top of Scroll View

Is there better (framework built in) way to add small "touchable" round info button (i) on top of scroll view? Theoretically I think there should be container view for button(UIControl or UIImageView with png?) and scroll view. ...

Previous versions of Xcode... advertised anywhere?

People seem to be coming up with links to download previous versions of Xcode (which I used here). Is there a page on apple.com that advertises these, or is this just secret knowledge? ...

ASIHTTPRequest dealloc and EXC_BAD_ACCESS problem

Hi, I'm using an array of ASIHTTPRequest wrappers (AsyncImageLoader) to download images for cells in a UITableView. I'm having problems handling ASIHTTPRequests lifetime. If I release them, I end up having a EXC_BAD_ACCESS if I keep scrolling up and down while they try to load images. Here's what my wrapper looks like. self.request ha...

iPhone app, running http requests while application in background

Hello, In my iPhone app I would like to run several queries when the application is in background. I already use ASIHttpRequest to make the queries, that works fine but now I try to find a way to trigger them in background. In the app delegate, I have added a call to the method making the request:    [self getItemsFromServer] getItems...

How to save an image using UIImageWriteToSavedPhotosAlbum after it is transformed

Ok i have searched all over and I can't not seem to find the answer I need. :-( Here is what I am doing and what I need to happen. I have a UIImageView that I am able to transfrom using UIPanGestureRecognizer, UIRotationGestureRecognizer, and UIPinchGestureRecognizer all that works great. The problem comes when it is time to save those ...

iPhone cost vs. benefit - OpenGL ES 1.x vs 2.0

I'm not sure if this question has been asked already, my stackoverflow-fu has failed me. So I'm building an OpenGL-ES-based iPhone game and pretty much all of the examples I've found out in the wild are on OpenGL ES 1.x. Which is fine because at least I'm (re)learning a lot about OpenGL in general. Now that newer devices support OpenG...