iphone

Memory is increasing all the time in navigation based iphone app

Hello I have a navigation based App with 5 ViewControllers. After inspecting the memory allocation with instruments i found out that memory is increasing permanently. The app starts up with 2 MB and after navigating through all 5 Navigationcontrollers it grows up to 10 MB and counting... For every allocated object there is a correspondi...

UIImage - How dow I keep track of an index?

Hi I have started creating a simple product image carousel. It basically comprises of 3 visible UIImageViews' and 2 hidden UIImateViews'. The UIImageViews are populated with images from an array and animate to give the appearance of of a carousel. My next objective is to determine which product the user taps and push a detail view onto...

How can I remove only the scrollview?

I have a viewcontroller that is set to scrollview delegate (the scrollview is a subview of the viewcontroller), when I put [scrollview removeFromSuperview]; both the viewcontroller and the scrollview get removed and I'm just left with an empty window. How can I remove only the scrollview? edit:::: this is part of my viewcontroller .h ...

How do I sync an offline web app (HTML+JS+CSS) with my server?

Do I need to implement my own sync methods in order to make an offline web app (html+css+js) stay up to date with changes made on the server (and viceversa)? I'm using MySQL on the server side. I read http://stackoverflow.com/questions/3106191/ with some pointers but I think they're talking about native applications when they mention CF...

How do I send a delete request with ASIHTTPRequest?

Wondering how I can send a DELETE instead of POST/GET etc with ASIHTTPRequest. Thanks! ...

Finding closest object to CGPoint

I have four UIViews on a UIScrollView (screen divided into quartiles) On the quartiles, I have a few objects (UIImageViews), on each quartile. When the user taps the screen, I want to find the closest object to the given CGPoint? Any ideas? I have the CGPoint and frame (CGRect) of the objects within each quartile. UPDATE: Red Pins...

CGPDFDocument scaling

I am just starting to build an app that will display PDF documents. I've been experimenting, subclassing UIView and using the code from Apples demo. I have a PDF document that contains an image that is 1024 x 748 pixels at 131 ppi, so that it SHOULD fill the iPad screen in landscape view. When I run the app the pdf is scaled to approxim...

How do you produce one static library for both release/debug on the iPhone?

I would like to release a static library similar to what PayPal did (https://www.x.com/community/ppx/xspaces/mobile/mep) for the iPhone. They were successful in incorporating both the release/debug version of their static libraries into one single *.a file. I have found solutions to combine simulator/device static libraries but not comb...

How do you send messages between two instances of a custom UITableViewCell?

Hi guys, I have a UITableView populated with a bunch of music players that I've made using a custom UITableViewCell. (as shown in the screenshot linked here: screenshot). The problem with the way I have it coded is that since each cell is completely independent, there's no way for one tableviewcell to check if any other the other cells ...

Voice Output in iOS

Is it possible to access the speech synthesis feature of the iOS that is used for accessibility? ...

How do PayPal incorporate UI elements and image resource into a iPhone Static Library?

I am trying to make a static library similar to what PayPal has done (https://www.x.com/community/ppx/xspaces/mobile/mep) for the iPhone. It looks like PayPal is able to integrate views into the library as well as image resources. The only solution I can think of is to code the UI by hand for the UI and produce binary data for the imag...

iPhone identify button pressed

Hi All! I have a view with several buttons that all have the same target and action. At the moment the action is @selector(doSomething). I need to be able to determine which button is pressed but I'm not sure of the best way to do this. The method doSomething is declared as... -(void)doSomething; Is there a better way to declare th...

UITableView dequeueReusableCellWithIdentifier Theory

When apple developed the UITableView for the first iphone they had a problem in performance when scrolling through it. Then one clever engineer discovered that the cause of this was that allocation of objects comes with a price, so it came up with a way to reuse cells. "Object allocation has a performance cost, especially if the allocat...

What's the easiest way to put a URL link into a UITableViewCell

I have some text in a UITableViewCell that has a URL link to it. I'd like to make the URL blue and, when clicked, open up the Safari Browser. Some of suggested that I use a UIWebView within the UITableViewCell, but I've not seen a simple implementation of that. I don't care about scrolling as I only have one row in this table (it is a...

How to use a namspace in the iphone sdk

probably me be stupid, but i cannot figure out how to use namespaces in the iphone sdk. Please could somebody help me. basically I need to know where to define a namespace in the files, i assume in the header, but where? I keep getting errors. ...

showsUserLocation does not display blue dot in iPhone 4.0

So, I've created a CLLocationManager, called it to start updating, set mapView.showsUserLocation to YES, and returned nil for the userLocation annotation. Here are some snippets from my code in my UIMapViewController: - (void)viewDidLoad { CLLocationManager *locationManager = [[CLLocationManager alloc] init]; [locationManager...

Facebook iOS SDK Too Slow

I have recently wired up my application to use Facebook iOS SDK (http://github.com/facebook/facebook-ios-sdk), the integration works fine but the pages are really slow. It takes really a long time to load the Login screen. Login action takes more than 10-60 seconds. I didn't have this problem with FBConnect. Am I missing something? Is ...

HTML 5 video in UIWebview Orientation landscape

Hi. I have an iPhone application where every view is in portrait. I have a UIWebview with some HTML in it. Amoung that there is a html5 tagged video. When I play that video, it plays in portrait only. In order to make it work in landscape I have to return YES for shouldAutorotateToInterfaceOrientation in the viewcontroller, but I don't ...

Simple swipe gallery with jQTouch javascript iphone / ipad

What I wish to achieve is have a simple gallery of images which the user can swipe through using jQTouch ( http://jqtouch.com ) <div id="container"> <ing src="1.gif"> <ing src="2.gif"> <ing src="3.gif"> </div> The images are quite long, for example 200px in width each. The container itself is 300px wide with hidden overflow. What I w...

Vertical Tab Bars?

I was wondering if anyone knows where I can find documentation or a tutorial on how to make a vertical tab bar for iOS like in 1Password or 2do. I figure that these aren't "real" tab bars, but I'd really like to use that functionality and I'm at a loss on how to accomplish it. Thanks in advance for any help! ...