iphone

iPhone subview w/ transparent background and clickthrough behavior

I have an application with several views and a tab controller. I've created a view that contains the elements for the header of my application which is consistent on every view. This way I do not need to recreate the header on every view, I can just overlay the HeaderView over the tabbarcontroller. The problem is that when I add the ne...

Wait for uitableview animation to finishe

Hi, I have a tableview and I'm doing an insertrow animation on it, and sometimes I have the deleterows animations too. But the problem is that sometimes the delete is called before the insert finishes. Is there a way to know when the animation is over? Thanks ...

On iPhone, do I need to account for the 20px of the top status bar?

On iPhone, when adding a subview to the window view manually, do I need to account myself for the 20px of the top status bar? That is, do I need to create views with a frame set to (0, 20, 320, 460): UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 20, 320, 460)]; [window addSubview:myView]; If so, are there some official ...

IOS4: AVFoundation: how to get raw footage from a movie

How can i access the raw footage from movies taken with my camera, so i can edit or transform the raw footage ( eg: make it black/white ). I know that you can load a mov with AVAsset make a composition with different AVAsset's and then export it to a new movie, but how do i access so i can edit the movie. ...

MKMapView with address

Hi, is there a way to make the MKMapView place a pin with a given address? Without using the Coordinates Thanks ...

iPhone SDK: Passing NSMutable Array to controller not working

Hi there! I have an NSMutableArray countHistory defined and am trying to pass it to the next view controller: Updated Code: NSLog(@"Debug One"); HistoryTableViewController *controller; NSLog(@"Debug Two"); controller = [[HistoryTableViewController alloc] initWithNibName:@"HistoryTableViewController" bundle:nil]; NSLog(@"Debug Three");...

Is there much of a penalty to be paid for "standard" PNGs on iPhone?

If I use an unoptimized PNG for my Default.png image, how much am I going to pay for that in startup performance? I realize that Xcode optimizes PNGs when they're copied into the .app bundle, but I'm performing a little build-time scriptery and ending up with regular PNGs there. Seems to run fine, but I want to be sure. ...

Reload Data On View Controller Dismiss

I have a table view, which populates data from the web. To add information to this list I have a configuration screen presented modally. When data is added successfully the configuration screen is dismissed, I would like the data in the table view to automatically reload from the web to reflect the newly added data. What is the best w...

navigation will terminate?

Hi, does anyone knows how can i can call a notification similar to - (void)applicationWillTerminate:(NSNotification *)notification which is when app terminate, but what i want is when i drill up a navigation view. thks in advance. ...

iPhone segmented control with system buttons

Has anyone worked out a way of getting system buttons into a UISegmentedControl (a UIBarButtonSystemItemAdd, for example)? If I can't work it out, I'll probably have to extract the system images somehow but it seems wrong, and I'd be surprised if that's how Apple did their segmented control for navigating up and down emails messages in ...

Creating a transparent UIView behind a subview on iPhone

Question regarding layer two bitmaps on top of each other, one of which is semi-transparent. I have a custom UIView called foo. I have two CGBitmapContext's I have created. They are effectively being used as offscreen buffers and are of equal rectangular dimensions. I want to take the two of these offscreen and layer them one on top of ...

Iphone Core data - automatic saving or not ?

Hi, I started using core data and I read that I can save the data using the managedObjectContext "save" function. However, I noticed that when I fetch records from my store (sqlite db), even if I change my managed object without saving, and I reload my view , the new data is loaded. (In my viewWillAppear I fetch the data all over again...

How does "bump" technology work?

Any good documentation or articles out there about doing device-to-device data transfer? ...

fixed positioning and user-scaling on mobile webkit.

The basic problem I have is how to keep something on the screen on Safari at all times, while still allowing the user to zoom/pan etc. The full version is that I am writing a bookmarklet, so it needs to work with as many websites as possible. The overall goal is to have my div show up, anchored to one of the screen edges at all times. T...

ModalView rotation with a thick border (like iBooks app)

controller.modalTransitionStyle = UIViewAnimationTransitionFlipFromLeft; [self presentModalViewController:controller animated:YES]; Is there any way to make it flipping with a thick border/side? (like iBooks app, when you're switching between books view and the books store) ...

iphone 4.0 local notification

Hi guys hope you doing well i want to launch my application automatically when it gets notification without showing alert, how it is possible. One more question is that it is possible to run a continuous sound in the background when the notification arrive means "local Notification". Thanks in Advance. ...

Hiding iPhone Status Bar in Select Views Only

How do I go about hiding the iPhone status bar in select views only? I know there is an option in the plist file but that applies to the whole project. Also, Ive tried using this line: [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation: UIStatusBarAnimationSlide]; but this applies it to the whole project, even if I ...

@selector in objective-c not behaving as expected

Hi all, I am a little perplexed and I have been working on this for hours and googling without any real leads. I want to create a callback in objective-c for my iPhone app utilizing the @selector. Class 1: - (void) someMethod { // create selector SEL successCallback = @selector(successMethod); // call some service with c...

Why does Instruments say this code is leaking?

I have this snippet of code from a class created by Erica Sadun, that Instruments says is leaking: - (void)cacheBeginPointForTouches:(NSSet *)touches { if ([touches count] > 0) { for (UITouch *touch in touches) { CGPoint *point = (CGPoint *)CFDictionaryGetValue(touchBeginPoints, touch); if (point == N...

Core Data - Setting a Relationship

Hello, I have a problem with Core Data which has left me at the end of my tether. So I was wondering if any of you wonderful people could help. Basically, I have two entities in a Core Data project. These are: Author {authorName, dateOfBirth} Book {bookName, pages} There is a one-to-many relationship from author to books called 'auth...