iphone

Crashing while passing UIColor as argument

I have a little UIView object, CircleColorView.m, that simply creates a view with a colored circle in it. I then use that view as the background to a bunch of buttons (all different colors). My problem happens when the drawRect: method gets called. I crash, but only sometimes, when I reference the object color which is a UIColor. I am...

iphone app integrating with facebook

I want to integrate facebook framework in my iphone app. When going thru the documention, they asked to use private key and secret. How can I generate one to be used in my app? Also in the sample app, on click of "Connect to facebook", i'm seeing full screen with a facebook view which is bigger in size. but in few apps from app store, i...

Image not getting displayed in View

Hi, I am creating a simple app for iphone...I am just learning iphone programming.. I have just added image view and added a image to it... When i run and build it...i am not able to see the image.. Am i missing something? ...

Sequential UITableView navigation with floating UIView / UIButton

I've got a series of UITableViews (Child A, B, C) which all have a common parent Tableview. Navigating between children tableviews will be sequential (e.g. following a recipe). At the moment, navigation looks like this: Starting in Parent TableView (Rows Child A, B, C): Select Child A -> Push Child A -> View Child A -> click Retur...

download database to iphone

The app I'm writing needs to get information from a remote database and then store it in the SQlite database on the iphone for offline use. As of now I'm using a php script to querry the database and then just basically scrapping the html data from the php echo calls. My problem is that now that I'm moving away from test data I'm using...

Weird iOS4 XCode framework error

Hey guys, I'm converting a OS3 application to the new iOS4 release. What I did was download the new XCode and the new SDK, and just opened the application. I clicked on the "Build & Run" and I'm getting an error that looks like this for every the Foundation, CoreGraphics and CoreLocation frameworks- warning: in /Developer/Platforms/iPh...

Images appear cropped in iPod Touch, but they are fine on iPhone

Hi, I have images of size 100x50 each. I have to display them in an image view of smaller size. Hence I specify the image view frame width as 74 and height as 37 and I specify the content mode as UIViewContentModeScaleAspectFit. The images appear fine in simulator and also on iPhone 3G. But they appear slightly cropped at the bottom on ...

Core Data Migration: Extracting fields to an abstract entity child

I have a migration where I'm moving fields from one entity into another entity which is a child of an abstract entity. My model has an entity, Thing, which is 1->M to an abstract entity, AbstractWidget, which is the parent for NewStuff. Something like this: +-------+ +----------------+ +----------+ | Thing |<--->>| AbstractWidge...

Managing calls to objects that get deallocated when the view is backed out of

I have a view controller managed in a UINavigationController. My view controller puts up a "loading" screen, and uses ASIHTTP to asynchronously load table data. Then it renders its table, and in each cell there's an image that it uses ASIHTTP to asynchronously load. When it lands each image, it uses [self.tableView reloadRowsAtIndexPaths...

iPhone Production/Release Exception Handling

In advance, please excuse my lack of understanding for iPhone/Objective-C Best Practices; I come from a .NET/C# background. Although, I've read many posts regarding exception handling for the iPhone, I'm still not exactly clear on what most people do for production code. Also, I haven't been able to find any open source apps with error ...

viewDidAppear being called BEFORE cellForRowAtIndexPath?!

If you create a new project and choose "Navigation Based Application", a RootViewController (which is actually a UITableViewController) class is created. In this VC, the method viewDidAppear is called BEFORE the method cellForRowAtIndexPath. If you create a simple UITableViewController and add it to the project, the viewDidAppear is al...

Accessing Video in Camera Roll after it was previously saved within the same App

Dear all, I am doing some video related app. I am implementing the following. 1.- An existing Video is chosen from the camera roll using picker=[[UIImagePickerController alloc]init]; 2.- Then the video can be trimmed using the edition tool of the SDK. picker.allowsEditing = YES; 3.- Video is processed with a proprietary algorit...

Non-zoomable webview that works at both iPhone and iPhone4 resolutions

I want to have a webview that has a single HTML and a single CSS file, shows graphics at the same size, but native resolution for each. My existing webviews, designed for 320x480 seems to scaled up well (crisp text and border-radius for instance), though images are at half res in the iPhone4 simulator. How do I simulate the native imag...

xcode different linker/cflags for device vs simulator on same target?

anyone know if its possible to set cflags/linker flags different for simulator vs device on the same build target in xcode. ...

iPhone - UITableView datasource?

I have a UITableView that was created from data coming from a mutable array. This is an array of dictionaries. So, in order to populate my table, I did something like - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ... NSDictionary *umObject = (NSDictionary*)[listaDeObjectos ob...

NSURLRequest -> NSURLConnection

I was told that using the -> in that way will keep my UI ticking so it doesnt lock! and save doing NSThread / NSOperationQueue Can someone help me with the syntax of how i would use that? Im basically downloading a image into a UIImage*. Thanks ...

Automatically capture the video with iPHone OS 3.x

Hi, I have just view the iPhone application Touch Cam (http://itunes.apple.com/us/app/touch-cam-video-recording/id337848815?mt=8) which provides the capturing video automatically. There is no api provided for this in iPHone OS 3.x. Is there any hidden API (Undocumented ) is available for this. or how can we start the capturing of vide...

How to Set Mode of a UIImage to AspectFill and make it the background of the main view?

Hello, Currently I have a image set to the background of main view using the code below: self.backgroundColor= [[UIColor alloc] initWithPatternImage:[[UIImage alloc] initWithContentsOfFile: SomeCoolFilePath]]; Problem is, the image is not resized correctly and I want it the mode of it to be AspectFill. How would I achieve this? Th...

The eXe-SCORM generated html file has to be transparent to show the backround UIIMage view

Hii....i am new to iPhone programming..Can anybody help me out please i have an html which is generated by eXe tool.I need to show it on an UIImageView,created programmatically. so the html has to be transparent then the image looks like backround. is it possible to make that html as transparent..? Thank u ...

NSObjectInaccessibleException - CoreData could not fulfill a fault

My iPhone application crashes when and I do not know how to resolve it. I have a secondary thread that does some cleanup (deletes objects). This cleanup is done on a second NSManagedObjectContext as apple recommend when doing stuff in another thread. When the cleanup is finished I merge the two contexts. My problem is that my applic...