iphone

NSString memory leak

I am getting a memory leak in a method that builds a email message string from a NSManagedObject. The string is created with NSString convenience methods, and so should be autoreleased. What am I missing? Code below... Instruments is flagging the final occurance of buildString near the bottom of the method (see comment in code): ...

Using ZipArchive Zip file in iphone mail attachment?

is it possible to send a zip Archive file inside an email attachment using the mail api? ...

Client Server Applications for Iphone.

I have a question regarding this topic.Like for Client Server Applications 1) is it necessary to load database directly into the Application. Suppose if I have a DB in the back end and My application has to connect to that DB and display the results on the View for this do I need to Add DB into the Application directly. 2) can we ac...

How do you format a string that is part of a larger string?

I have created a string that depends on what the user inputs into the textfield: NSString *book = [[NSString alloc] initWithFormat:@"%@%@", bookTitle.text, afterbook]; Then this string is part of a bigger string: NSString *msg = [[NSString alloc] initWithFormat:@"%@%@%@%@%@%@%@%@%@%@%@%@%@%@", lastname, firstname, secondfirstn...

MPMediaPickerController orientation on iPad

Hi, all ! How can I set correct orientation of MPMediaPickerController ? I've return YES in shouldAutorotateToInterfaceOrientation, but i have bad frame for Landscape (if show MPMediaPickerController in Portrait first, and conversely). I've rotating my device chaotically and sometime frame set to correct himself! I've find the method ...

iPhone SDK: Image Capture Landscape Mode

I want to allow my users to draw a picture on their screen in landscape mode. Upon button being pressed, that image should be stored locally on the device. I am using this code example below which works vertically http://www.ipodtouchfans.com/forums/showthread.php?t=132024 My problem is that I'm trying to adjust the code for landscape...

Best options to integrate my application with the Nike+ features of the iPhone 4G

How can I integrate my application with the Nike+ features of the iPhone 4G. I want to access the data captured and send that to my own applications. There seems to be limited information available on this topic. Any help is greatly appreciated. ...

Is it correct to initialise a UITableViewCell using initWithCoder?

I am loading a UITableViewCell using, [[NSBundle mainBundle] loadNibNamed:@"BlogCell" owner:self options:nil]; cell = blogCell; self.blogCell = nil; where blogCell is an outlet to BlogCell.xib The actual UITableViewCell is of type BlogCell which is a subclass of UITableViewCell. In my BlogCell class I am using -(id)initWithCoder:(...

self.tableView.delegate = self and self.table.dataSource = self memory leak

Hello everyone, I have following codes, which have memory leak on device, could you please kindly help check it? Thanks. @interface NewsListViewController : UIViewController<UITableViewDataSource, UITableViewDelegate> { @private UITableView *tableView; NSFetchedResultsController *fetchedResultsController; ...... } @property (non...

What is missing in Objective-C that you don't want to program with it

Now that Apple relaxed the restrictions on developer tools/programs, I wonder what tempts developers to other languages than Apple offers by default, Objective-C, which is quite fun to program with. What missing feautures makes you not to program with it but something else? ...

Objective-C Auto Adjust Subviews

I'm looking to write a method for an iPhone app that will auto adjust a UIViews's subviews Y values depending on the available space within that view. I'll try my best to explain without getting too confusing. I have a Container view that is housing up to 3 Subviews. With in each subview is a button that removes the sub view from the co...

change image on iphone screen's wallpaper

Hi , I have a collage image ( many images clubbed together ) , and at the center i have an advertisement banner for example visit the following sample image Now, in my application user can set this image as a wallpaper in iphone screen. now what i want is to keep changing advertisement banner (here is is MC Donald's) inside this im...

Iphone Ipad QA testing process

I'm curious about how people test their apps In general. I recently uploaded an app and wanted to reach as many iOS' as possible so i targeted it to 3.0. I did test on iphone 3, iphone 4 and 3GS but found out that there was an obscure sizing of a button image on a specific ios version. In general how do you guys test for different ver...

UIView frame when navigation bar and tab bar controller exist

I am creating a UIView programatically in loadView. The application has a UITabBarController and UINavigationController. How do I create a view that automatically resizes when a tab bar and a navigation bar both exist? My current approach to this problem is calculating the heights of the navigation and tab bar controllers and subtracti...

FBConnect not working on iPhone

I am implementing FBConnect into my iPhone application and it works perfectly on simulator. When I try to run it on device, the FBLoginDialog box shows up for a couple of seconds (with a spinner) then closes immediately. When I trace the fail I found that it was immediately failing with an error: Error Domain=kCFErrorDomainCFNetwork Cod...

iPod detail view icon

So I'm having the hardest time figuring out what this thing is called, or where I can find it. I have an app where I would like to use this icon, or button or whatever it is, but I can't find it in Apple's system supplied buttons. Here is a picture of the icon I'm looking for (it's in the red circle): I know that Pandora uses this sa...

Does all data from URL get loaded into NSData at initialization?

What exactly happens when I do this...? NSData *data = [[NSData alloc] initWithContentsOfURL:[NSURL urlWithString:@"..."]]; Does it immediately go out to the Internet, gets all the data at the URL, returns, and goes to the next line? Or does it set things up, and the data is read later when the bytes of NSData are requested? If the d...

Testing an iPhone application with iPad Simulator

I have developed an application for iPhone devices, the application works perfectly both in simulator and devices. Now I have tried to run the application on iPad (both simulator and real iPad), the application appears but my custom carousel object is not showed... there are no error in the traces but the object is not showed in the scre...

Problem doing logic tests after XCode 3.2.4 upgrade

The recent upgrade to XCode 3.2.4 and iOS SDK 4.1 lead to that my unit tests are not working any longer with my iOS project. The project is currently only running on the simulator, not real hardware. I tried to make a new blank project with a dummy test case added that will always pass, but it does not work either, giving me this result...

iPhone UITabBarController and rotating views

Hi All, I'm currently trying to implement UIOrientation in my app and it works well so far for each individual ViewController. However, if I... Load View 1 and set it to portrait. Then go to view 2. Then rotate the phone to landscape. Then go back to view 1. The view in view 1 is still in portrait mode and falling off the bottom of th...