iphone

iPhone SDK - Display more information about a selected CustomCell (custom UITableViewCell)

I have a CustomCell loaded using: NSArray *nibObjects = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:nil options:nil]; I have no problems with the tableview but when I select a row I want display more information on that row(like facebook app)... using the typical "show more". At the beginning the row show "title" and "des...

Need to override drawrect if your UIView is merely a container?

According to Apple's docs, "Subclasses need not override -[UIView drawRect:] if the subclass is a container for other views." I have a custom UIView subclass that is indeed merely a container for other views. Yet the contained views aren't getting drawn. Here's the pertinent code that sets up the custom UIView subclass: - (id)initWithF...

Purpose of CALayer?

Hi, I'm slightly used as to what the purpose of CALayer's existence is. Why not just put the properties in a UIView? Thanks. ...

iPhone: Grouping records in multiple UITableView views

Let me first say, I know how to create sections and group records within a UITableView. What I am wanting to do is something similar to creating a photo album. So, I have all my data objects coming from core data, and, I want to be able to create a custom group, such as "My Trip to Mexico" and "First Birthday". Then, the user should b...

Simple calculator app crashes when a third number key is punched.

Hi , I am a newbie to the iphone app world. So I thought I try my luck with a calculator app. Unfortunately I am running into an issue where if I press a third key in the calculator the app crashes. Sometimes I get this error EXC_BAD_ACCESS. Here is a code in my CalculatorViewController.m file. #import "CalculatorViewController.h" @imp...

UITableViewCell is transparent when not supposed to be

My UITableViewCell is being transparent when it's not supposed to be. My table view has a background color and it shows through the table cell, even though they're supposed to be opaque. I'm not sure why this is. Relevant code: UITableViewCell *cell = [table dequeueReusableCellWithIdentifier:emptyIdentifier]; if (cell == nil) {...

How to email CLLocationCoordinate2D as a link

I am trying to emulate the Maps 'Share Location' via email functionality. I have the latitude and longitude of my location and am currently using it to display the location on a map via MKMapView. I also have functionality that composes an email from the app and I would like to include the location in it but can not figure out how to c...

How to treat CoreData entities with low memory usage

Hello, I tried CoreData for iPhone app, but it's memory-hogging when entity instances are fetched. After they are released, memory usage doesn't decrease at all. Is there any way to treat them in a low memory usage. Thank you. ...

Quartz 2D Layers

I want to create 2 separate layers using quartz 2D. Can i handle there redraw methods separately? so that i can redraw 1 layer without redrawing the whole screen or other layers. Is it possible? any code sample? ...

Need help about contentMode and autoresizingMask of UIImageView

i have picture like this image it will present on Landscape Mode so if rotate device to Portrait, how to present image like this ...

iPhone "Quick Start" tutorial question.

Newbie at coca touch/xcode and the iPhone. Within the "Quick Start" tutorial, I would like to extract the StreetKey. ...

Unable to hide TabBar on sub view in iphone

Hello Everyone, My app flow requires Navigation and TabBar controller. So I decided to use TabBar template. Since my first page is login which do not require TabBar, I used presentModelViewController to show Login screen which have Navigation bar if user Navigate to Forgot password. LoginView *rootView = [[[LoginView alloc] init] autor...

Dynamic attached UILabel is not moving.

I have attached a UILabel to view. Now i want to move that label but its not working. here is my code UILabel *tick = (UILabel *)[self.view viewWithTag:tag]; CGRect frame = tick.frame; frame.origin.x = newVal; frame.origin.y = newVal; I can change text value of the UILabel tick but how can i move it here and ther...

Microphone question in iPhone SDK

I am trying to do an app, to where when it launches, it will detect audio, and then play it back automatically. NO BUTTONS, nothing to press. Just a picture of something then, it listens for audio, then plays it back. Similar to the Talking Carl app in the App Store. Any ideas/help? Would appreciate it, if i could use the code with IB. ...

Xcode : How to add support OS 3.0 in XCode 3.2.3

Hi, Is there any way to detect the SDK prior to 3.1.3 in the latest XCode that is 3.2.3. Looking for answers. Thank You. ...

Developing for iPhone / Syncing the iPhone to another Computer than Dev?

Weird question: I have an iPod Touch and plan to get an iPhone once the next generation comes out. Now, my main machine is a Windows PC which is where the iPod is connected to. As I need a Mac to do development, I wonder if it is possible to connect the iPod to the Mac for Xcode/Development but keep it synced to Windows for Syncing? No...

iphone os 4.0 and libxml2 and os 2.2.1

Hi, My project using libxml2. and i want to compile my application with OS 4.0 with deployment target 2.2.1 but i m getting errors for libxml2. what is the way to do this. i want compile on OS4.0 and deployment target to 2.2.1 with libxml2 support. Looking for answers. thanks in Advance ...

Can the memory used by MKMapView be released some how?

I am using an MKMapView in my iPhone application. When I load this view, the activity monitor instrument shows that the real memory of my App is increasing significantly. It keeps going up as you move the map around or zoom in and out. Once the View controller that loads this view is removed, the memory that was allocated due to the usag...

how to pinch UIImage in iPhone App

I am using several UIImage in my application which have text include in that imgage. So I have to pinch that image in which user want to read that message that are written on the image. so please provide me some code to do this. Thanks ...

Can't resignFirstResponder with UITextView

I have a UITextView. I implemented a navigationBar UIBarButtonItem to respond to a touch and resign the firstResponder for my UITextView. But, when the selector method is called, the keyboard doesn't get dismissed. I checked the UITextView's responder status with isFirstResponder and it returns YES. I also checked it with canResignFirs...