iphone

Foundation framework memory leaks

Hi Everyone, We have created an iPhone application which has lot of images in that and we are using facebooker plugin. When we are checking for the memory leaks, it shows lots of memory leaks in foundation framework and CoreGrapics. If anyone will be having any idea about this, please share it with me. Thanks ...

How do I save an NSMutableArray w/ UIImgeViews to the iPhone's document direcory

I have an NSMutableArray that holds multiple and changing amounts (that's why I am using an NSMutableArray) of UIImageView's that I want to save and also in return load when my app quits and loads. Also, how would I then, after my app loads, get the image viws out of the array ...

Sound working in emulator, not in real iPhone

Have few short sound effect samples, which play just fine in emulator, but not at all in real iPhone 3GS. Here's the code, about as-is from Apple SysSound sample: CFBundleRef mb = CFBundleGetMainBundle (); CFURLRef soundFileURLRef = CFBundleCopyResourceURL (mb, CFSTR("mySound"), CFSTR ("caf"), NULL); SystemSoundID sid; AudioService...

How do I scroll a UIScrollView using two fingers

I have implemented a UIScrollView that I want to scroll with two fingers and not one. I could easily deal with setting the content offset but how would I get a two finger swipe gesture acknowledged then? ...

iPhone image memory leak

Hi Everyone, We have a code like this NSData* imageData; UIImage* imageForData; UIImageView* imageView; NSData* imageData; UIImage* imageForData; UIImageView* imageView; CellWithId * cell = [[CellWithId alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier]; CGRect frame; frame.origin.x = 5; frame.origin.y = 0; frame.si...

iPhone UIButton Parent Frame Changing Touch Up Inside Event Issue

I have a UIButton within a UIView. The button is docked on the bottom of the view using the Autoresizing Masks. The button is working fine when the view initially loads and the IBAction is being called successfully. Now when I resize the height of the parent view the button stays docked at the bottom of the view, however now only half...

Weird Issue with the info/second View on iPod

I just started testing my App on my iPod, and I have to click numerous times the info light button which is attached to my second view to show. I have to click it probably 10-15 times, then it finally triggers the second view to show. Of course in Simulator it works fine, but on the iPod it's rather weird that I have to keep hitting it t...

superview and parentviewcontroller nil after adding a subview

I think I'm missing something fundamental and so I want to ask the community for some help. I'm building an app based around a basic iPhone Utility Application. My MainView and FlipsideView share some elements so I have created separate ViewControllers and nib files for those pieces. In order to do this I have done the following: 1. Crea...

string value stored in NSDictionary

I am trying to implement this button action, but the if statement is not evaluating to be true. I have a situation where the value in that "School" dictionary will not always have a website stored. For that reason i want to check, but what do i check against. If "nil" is not stored there when there is not a value, then what is? -(IBAct...

iPhone CurrentTimeZoneOffset from UTC

Is there a way to get the offset time zone for a given date. For example, if I am in New York and I pass in 12-12-2009 4 PM I would get back "-4" as we are 4 hours off GMT. (In .NET land there is a function to do that off the DateTime class. So I'm guess Cocoa has it too?) Ian ...

iPhone Splash Page Specs Required by Apple

What are the specifications required by Apple for a splash page for a custom iPhone application? ...

iphone support Screen media type then how to make PC website compatible with iphone screen?

iphone support "Screen" media type then how to make PC website compatible with iphone screen? While both uses same media type? I know iphone do not support FLASH but if website has fixed width images, uses of jquery and 960 px fixed width. then how to make compatible with small screen iphone. ...

how to launch my application in iphone?

I have build one of my application on iphone but refuse to build that on m iphone . Can u tell me the proper steps for launching my application on my iphone and step by step procedure for setting the project settings. ...

Command /usr/bin/codesign failed with exit code 1

how to remove following problem Command /usr/bin/codesign failed with exit code 1 Iwant to proper method to remove it. Plz someone help me as soon as possible. Its hell problem creating a lot of hedache from last 10 days.............. ...

Dynamicly added subview disappears

I have a UIView that gets created and added as a subview dynamically, not in interface builder. Problem is the subview disappears eventually and all that is left on the screen is the objects that are defined in the xib that is being loaded. It seems to occur once the retainCount of the subview drops from 3 to 2. I'm fairly new to iPhon...

How to download large files using objective c on iphone

Hi There, I ve written an app that downloads files from a sever via http. The users will always be on WLAN when using my app. It downloads files of <10MB without any issues but the application just hangs for larger files. Is there a best practice way to download large files or do i need to implement some form of chunking? Any code sampl...

What's are the differences between @dynamic and @synthesize?

From the docs I was reading that @dynamic creates the accessor methods at runtime, while @synthesize will create the accessors at build time. So let me guess: @dynamic saves some memory and code is kept smaller in memory pages? or what? and what other differences are there between these? Would it be ok to say: "It's always a good idea ...

What to call an class that inherits from NSManagedObject?

May be a silly question, but what's a class called that inherits from NSManagedObject? Is that an "Entity" class? Or is that an "Model" class? Or an "Entity-Object" class? I mean... ok, when I instatiate that thing I get an "Object". The "Entity" itself is actually the "Class" that describes the attributes and relationships, right? From...

using a UIView as MKMapView subview to draw a route

Hi!Before anything i'm sorry for my bad english. I'm trying to draw a route in a UIView and set that view as a MKMapView. Now i have a UIView class (ViewClass) where i put all the touches methods and set the view of my viewcontroller as an instance of that class. The MKMapView is a viewcontroller.view subview. I can get all the touch...

Getting started with Objective-C and the iPhone SDK

So I finally got a Mac to play around with and I'm downloading the massive iPhone SDK. Do any of you iPhone/Mac programmers have a favorite book? Site? Tutorial to get started with? I haven't touched C code in a long time and have only briefly seem some Objective-C code. I'm a full time asp.net/C# dev, so I have a programming backgroun...