iphone

Memory consumption keeps increasing while running application.

Hello all, I have multiple views in my application with respective view controllers. What I am doing is as follows. Here is the more illustrative code: - (void)applicationDidFinishLaunching:(UIApplication *)application { View1Controller *viewController1 = [[View1Controller alloc] initWithnibName:@"View1"]; View2Controller *viewC...

iPhone custom UIView bounds

I am trying to create a custom UIView that is stored in a nib so that I can position it using Interface Builder. I have created a class called RippleView that extends UIView. I'd like to position this view as a subview using Interface Builder. To do so, I've dragged a new view into my existing view in Interface Builder and gave it the R...

Class variable type gets changed

So in my view controller, I run code to populate an NSArray of Customer (custom class) objects. This custom class has objects that are of ANOTHER custom class called Address (a customer has a billing address and a shipping address). In the view controller when a customer in the list is selected, it passes a new view controller a customer...

How To Call/Create iPhone Calendar In A User Application

Hello, I would like to know whether we can create a calendar using NSCalender and show it in our dedicated application. We can create a NSCalender object by **NSCalendar *japaneseCalendar = [[NSCalendar alloc] initWithCalendarIdentifier : NSJapaneseCalendar];** But how can we show this calender in out application. Is there any way...

How to change subversion settings in xcode?

Hi, I've had subversion running in Xcode for a while. The integration of subversion has always hung by a thread. However my subversion server has changed its ip address ... and my xcode project still tries to look up the source on the old ip. I have changed the ip of the subversion server via the SCM menu in xcode ... however these cha...

How To Call iPod Library In A User Application

Hello Respected Friends, I would like to know is it possible to access iPod (GUI) in a user application, so that user can select few song and create his playlist. For better user interaction i would like to use default iPod GUI. Is there any way to call it in our application. It is not easy to create a similar GUI like iPod library. Ple...

Passing touch events from a view to a sibling/child view on iPhone?

I currently have 1 UIView where I do custom drawing. I want to overlay that view with another view which has a few controls (label, button, etc). This overlayed view will be transparent so you can see the drawing view. 2 Questions: 1) Should I make the drawing view a sibling or child of the overlay view? 2) If its a child, do touch eve...

'Locked' settings approach

I am planning to use the standard Setting application to manage most of my application's settings. However, I need a way to lock some of those settings from being changed (perhaps in a child settings view) without authenticating through a PIN screen. My research has led me to conclude that this isn't possible with the standard Settings...

Is it possible to determine the finger pressure on the screen?

I'm not sure, but maybe there's a way to determine the finger pressure on the iPhone screen? I know it has no pressure sensors, but it could be somehow calculated from the touch "footprint", if it was accessible in some way. ...

Where is my memory getting consumed

Here is My problem. If you see there is no memory leak but still I get the memory leak for general block as shown. When I click it it gives me the following details where memory leak is due to quartz core. I dont know where I am going wrong since I am not able to see any leaks in the leak bar. ...

How to delay a method?

I am working on an iPhone application. When the application starts I authenticate, establish a Restful connection, get data in form of XML file, parse it and then display it in form of table view. Here is my problem. If the user information is already stored on the application or if it is hard-coded in the code, the application takes t...

Pros/Cons of Publishing iPhone Apps as Individual or Company (LLC, S-corp)?

I'd like to eventually publish one of the iPhone projects I've been working on and I was wondering if I should really establish an LLC before joining the Apple Dev program and submitting apps under the company name, rather than just using my name for both. I'm looking for any legal or financial differences between the two options...as w...

Problem writing to a plist

Everything is working fine until I call the saveFile method (shown below) to write the file back to disk, where it crashes. What am I doing wrong? This is part of my viewDidLoad method where I open the file, which works fine. //Get The Path [self initPath]; dictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:accountsFileP...

Measuring iPhone application load time

I am in the process of optimizing an iPhone app for very short load time and am wondering: Is there a means of measuring the load time of an iPhone app from the time the user taps the icon to the time that the app is usable (or at least –viewDidLoad gets called)? Ideally this would work in the device and simulator, but if someone has ...

iPod Touch compared to iPhone as development platform for iPhone apps

Essentially I'd like to know just host compatible are the iPhone and the iPod Touch. I would like to know if I could buy an iPod Touch (and thus save some cash) and develop iPhone apps on it or if I really should spend the extra money and put up with AT&T and get the iPhone. What exactly is different between the two devices (other than ...

iPhone Animated Loading Screen

Is there a way to have an animated loading screen for my iPhone application as opposed to the Default.png that I currently am using? ...

How to add Disclosure button to Custom UITableViewCell

Can I render the Disclosure button graphic with it not being a button. I want to add the image to the custom rendered cell, but am not sure how to get the image. How do I render the image alone. ...

NSSetUncaughtExceptionHandler not catch all errors on iPhone

I'm using GTMStackTrace from http://code.google.com/p/google-toolbox-for-mac. I need a way to test end-user to send me errors when the app crash. I know how send data to my website but the problem is how catch all non-handled errors. I have this code: void exceptionHandler(NSException *exception) { NSLog(@"%@", [exception reason]...

How do you superimpose images on each other on the iPhone/Cocoa?

In particular, I am adding a compass to my app. I want to place an arrow that rotates on top of a circular compass background. If you could link me to anything that describes stacking/superimposing images, I'd be grateful. I couldn't seem to find much via Google. ...

How to control the orientation of the device in iphone / ipod?

Hi all i have to do something on rotation the device on the portrait mode but when i use the (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations //[[[UIApplication sharedApplication]keyWindow]subviews removeFromSuperview ]; // return (interface...