cocoa-touch

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. ...

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...

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 simulator isn't showing splash screen

All I have to do to show a splash screen in a view-based application is drag an image into the resources folder and name it default.png, correct? This is what I did, but the image doesn't show. ...

stringWithUTF8String fails, but only sometimes

I have the following bit of code: NSData *data = [NSData dataWithContentsOfFile:filePath options:0 error:&fileError]; NSString *recipe = @""; if (fileError == nil) { recipe = [NSString stringWithUTF8String:[data bytes]]; NSLog(@"Converted Recipe as: %@",recipe); NSLog(@"Original Data was: %@",data); } else { NSLog(...

Odd problem with UIView touch handling

Hi, For my iPad app, I'm using a UIViewController subclass called SidebarViewController to display some stuff in a sidebar. In the sidebar I have a calendar control. I'm using the open source Kal component from http://github.com/klazuka/Kal. In the -viewDidLoad method of SidebarViewController, I'm creating a new instance of KalView (the...

Cocoa Touch - Holding down buttons

How can i repeatedly run this method as long as the button is being held down. This way the image is moved up as long as the button is being held down. -(IBAction)thrustButton{ //moves ship foward yCoordinate = yCoordinate - 2; [UIView beginAnimations:@"slide-up" context:NULL]; shipImageView.center = CGPointMake(xCoordinat...

Hide keyboard in UIWebView

Is there a way to make a UIWebView dismiss all associated input controls, such as keyboards/pickers? ...

Resizing a strechable image to match a UILabel sizeToFit

Hi, I'm trying to create a label with an image behind it. the image is a custom rectangle with rounded corners. I read about the stretchableImageWithLeftCapWidth: to make sure the corners won't get scaled and about the sizeToFit to enlarge the UILabel frame. Now the view as a whole: I have a UIView in IB, I added an ImageView with the ...

UISegmentedControl custom background image

Hi, I have UINavigationBar setup as image - some wood texture. I want to insert UISegmentedControl with 4 buttons on that bar. Buttons should have same texture with slightly changed tint. One solution would be to change tint alpha of buttons background color, sothat texture in background can get trough, but as I set alpha for tint in ...

Check if attribute exists

Is there better way rather than to fetch with predicate and see the number of results in order to check that the attribute exists when adding it into managed context? I'm trying to make an attribute unique for given entity... ...

How do I change the text but keep the formatting

How do I change the text of a label but keep the formatting as in interface builder? //This line changes the formatting and makes the text very small lHolidayNightCount.text = [NSString stringWithFormat:@"%f", sHolidayDuration.value]; ...

Help solving NSXMLParser error 39 : NSXMLParserAttributeNotStartedError

I've been searching for about two hours now trying to find out what this error is and how to solve it. Apple's documents gladly says NSXMLParserAttributeNotStartedError Attribute is not started. Available in Mac OS X v10.3 and later. Declared in NSXMLParser.h. but fails to provide any help whatsoever. Can anyone help me out h...

how to renew subviews?

Hello, I want to renew a subview which is created like this: CGRect keyLabelRect = CGRectMake(2, [heightofrow intValue]*i, [breitescroller2 intValue]-2,[heightofrow intValue]); UILabel *keyLabel = [[UILabel alloc] initWithFrame:keyLabelRect]; [Inhalt1 addSubview: keyLabel]; [keyLabel release]; By calling a method, "breitescroller2" g...

What is the ideal way in the iPhone SDK to handle data coming from a web service?

Currently, we're using ASP.NET asmx web services to interface with our iPhone application. My question is; whats the most ideal way of converting the responses from the services into objects which are easy to manage in Obj-C. At present, we have defined a class which has all the methods in it (GetSomethingById), this then converts the ...

how do I get a PDF object (string,image,etc) that was touched by user?

I am using CGPDF* set of classes to read a pdf document, is there a way to extract the object that was touched ('clicked') by user? In other way is there a way to get a PDF / (Quartz?) object at certain coordinates? ...

How to save array to NSUserDefaults?

I would like to save an array of view controllers in NSUserDefaults, but I am not sure how: [[NSUserDefaults standardUserDefaults] setObject:tabBarController.viewControllers forKey:@"tabOrder"]; When I read the above line, my tabBarController.viewControllers is blank. ...

SearchController: How to show ALL Entries when searchtext is empty?

I have a working searchview Controller which show me all matching entries when I insert a letter. It's working fine. If the search is empty, the Controller shows nothing. How can I change this? I want that it shows all entries of the filteredlistcontent-array when the searchtext is empty. Therefore I changed the filterContentForSeracTe...

Google Maps Integration inside iPhone App

I have a question about Google Maps integration inside a iPhone application. On my application, I have several stores inside a plist. Each store on plist has its altitude and logintude. So, I load each store on the map provided by Google Maps with MapKit. The problem is I want to say the user what is the store nearest his location. An...

Adding Navigation from home page

I'm adding navigation to subviews in my app from the home view. I understand the concepts of pushing and popping view in the navigation stack, however, I don't want the navigation bar in the home screen. Basically, when the user leaves the home view to any sub view, I'd like them to see the "Home" button on the left of the button nav ba...