iphone

Why doesn't Instruments "Leak" template catch my memory leak on my iOS app?

Hello. I'm diving into iOS development and am getting familiar with the tools. At the end of every day, I perform a "Run with instruments tool -> Leaks" on my app to check for any memory leaks I may have implemented that day. It rarely seems to detect any leaks and, while I'd like to think I'm just a natural iOS programmer, I refuse t...

iPhone SDK: Profile was not copied because it cannot be played on this iPod

I've created an AdHoc distribution profile. When I try to copy it to an 3g iPod touch, I get the following error message. Profile.mobileprovision was not copied to the iPod because it cannot be played in this iPod. I am confused. Why would I have a problem installing a Adhoc provisioning profile on an iPod touch? Any help appreciate...

Frequency Range of Auriotouch

Does anybody know what the frequency range of auriotouch is in FFT mode? Also, where is it defined in the code if possible. I've been digging through it, but am not very familiar with FFT or frequency calculation so am not having much luck. I've also done some googling and searching on stackoverflow and have not found results there ei...

How to display labels on a Pie Chart

Hi, I am developing an application that has a Pie Chart in it. I want to display the values(used for making the pie chart) to be displayed in the center corresponding area. I am using this code to draw the PieChart: CGContextSetRGBFillColor(ctx, 0.52, 0.63, 0.31, 1.0); CGContextMoveToPoint(ctx, posX, posY); CGContextAddArc(ctx,...

How can I return the count of objects for an FRC fetch?

I am trying to use the count of objects from my FRC fetch so that I can create an "Add" cell after all of my fetched objects have been listed in a UITableView. Is there a method for returning the number of objects fetched? I can only find a method that returns the count of sections for a given FRC. ...

iPhone : upload image to web aspx file

Hey ! I have a little problem. I have to upload a photo from my iPhone to a web server with POST Method but the server file is in aspx. I tried my code with my server and PHP file : works well ! Now with aspx file : doesn't upload :( I don't havec access to the .aspx . Here is my iphone code : NSData *imageData = UIImageJPEGRepresent...

How do you test iphone push notification feedback service

Hi guys, I need a way to test Push notification feedback service. I can send the notifications fine. I installed the app using XCode to my dev IPod, sent push notifications just fine, the app received them ok. I uninstalled the app, sent a few push notifications. Then tried the feedback service, but no luck. I do not receive any byte...

call methods from web page

I am using UIWebView in my application. I would like to have some hyperlinks to call methods in the Objective-C app. Is it possible? How? ...

mobile application features

Suppose one wants to port a desktop app to a smartphone (which can mean write from scratch). How in your opinion should a mobile version relate to to the desktop one? In other words, what are the common features of mobile apps? I can say: short user interface (not time consuming) dense content, filtered in comparison with the desktop...

NSFetchedResultsController.sortDescriptor by KeyPath

Hi, How can I set my fetchedResultsController.sortDescriptors to contain a sortdescriptor that uses a keypath, for instance, such as @"foo.name"? Cheers Nik ...

Photoshop/fireworks filesize for iPhone 4

What's the best way to design for iPhone 4 using either Photoshop or Fireworks? Essentially looking for dimensions and DPI to start with. Thanks! ...

Can Core Data use a Web Service as a persistence store?

Hi all, I'm working on an app that uses Core Data, and I'd like to be able to code it in a way that it can use a local SQLite store or a web-based store (with an XML or JSON response schema). Is it possible to use the exact same code for the Core Data stuff and just select the appropriate persistence store based on a user's preference?...

zoomToRect and setZoomScale problem

In my application I havea uiscrollview which contains a UIImageView. The UIImageView is a map, on this map the user presses on tab bar items and an icon is displayed on the map. I made it so that when the user taps a tab bar item them map will zoom to the icon location using the zoomToRect method, but when I implemented the setZoomScale ...

Is it possible to combine the settings bundle and main application localisation resources?

In the documentation for localising settings bundles, here, it seems to imply that the strings in the user defaults are only localised using the .strings files within the settings bundle. Is it possible to combine these .strings files with the main application's localisation resources so that all translations are in a single location ra...

Once iAd is displayed, does it never go away?

Is it okay to display and hide an iAd at will? Or is there an Apple-policy that says we MUST show an iAd at all times? Also, any way to configure (or if its even possible) to set the interval at which the ads are rotated/updated? ...

Using 3rd Party SDK and Finder doesn't finish compressing the app file. Any idea what's wrong?

I found this 3rd party SDK and I used it in my project. Everything compiles, works great and builds with no warnings... Before I was getting a warning saying that the CodeResources file needs to be a symbolic link...it's gone now but I think that it still has something to do with this problem... As soon as I try to compress the app fil...

display email inbox?

Hi, is there an option that I could retrieve from my app the latest 10 email subjects from my ipad email inbox. I would like to display the user his last 10 subjects in my new app. Any Ideas if this is possible and how? best chris ...

How to get requesting UIWebView from inside of NSURLProtocol

My app uses subclassing of NSURLProtocol. There are several UIWebViews in the app and for specific algorithm implemented in NSURLProtocol I need to know which one of the UIWebViews sends the request. My understanding is that object returned by [self client] should be somewhat connected with requesting object. But neither NSURLProtocolCl...

iPhone Cocos2D CCColorLayers

Hello, I am currently building a simple game in cocos2d. I wish to have a CCColorLayer which has a transparent background, but has visible children CCSprites. Is this possible, and if so how? Many Thanks, nonono ...

NSNotificationCenter sender equality criteria

Does NSNotificationCenter use pointer equality or some other criteria (like isEqual: or hash:) to determine whether a notification should be sent to an observer? ...