iphone-sdk-3.0

iPhone - How can i change the language of UIAddressBook to german?

Hello Everybody, i'm using the UIAddressBook interface to create a new Contact in my App. The problem is, that if the iPhone / Touch / Simulator is in German the UI is Englisch, has someone an idea? Greetings Fil ...

Sample rate of magnetometer (compass)

I was experimenting with the magnetometer (iPhone 3GS) and the Teslameter sample program. One question pops up, and that is if it is possible through some API to query the values of the magnetometer without going through the event-driven API. More specifically, the sample rate from the magnetometer seems to be limited to ~20-30 samples/...

One label, two different fonts?

I need to format text in a label like this: username: some text from this user. This will create additional lines of text that will go on and on and on. Where "username" is bold. This will go into a UILabel, which is in a custom table cell. Is there a way to get this type of layout? ...

UINavigationController crashes after pushing 3 views onto stack

I have a navigation controller, which has the following structure: Category Item Item Detail I can choose a category, and then choose an item to see its details. I can do this twice, i.e. go Back to the list of items and select another item. If i try this a third time, the app crashes, I get objc_msgSend in stack but thats...

Tapping CalloutAccessoryView to load detail View Controller

I have added a CalloutAccessoryView to my Pin Callout, and when i tap it, although my detail view is created, and the pushViewController:animated method is called, the view does not appear, and stays on the map view. My rootController is a UITabBarController, and i have a reference to my navigation controller in the app delegate, so cal...

What are the video formats supported by MPMoviePlayerController on the iPad?

When you use iTunes to sync your videos with the iPhone the videos are always saved with no more than 640 pixels wide, if I am not wrong. What about the iPad? What is the size of videos iTunes syncs with iPad? 1024x768? and what if the video has a dimension below 1024x768? Will it scale up? or will it keep the video at low res and scale...

iPhone KeyBoard Reposition

Hi all, I want to set position of keyboard when it appears. Can i set this using any API? I didn't want to use private API for that. Actually I want to display tab bar which is place d at bottom of screen.When keyboard appears then it hide the tab bar.So i want to set keyboard position at top of tab bar. Thanks in Advance. ...

UIAlertView is not showing. What am I doing wrong?

Here is the code: -(IBAction)signUpBtnPressed:(id)sender { UIAlertView *alert = [ [UIAlertView alloc] initWithTitle:@"k" message:@"Thanks for Signing up!" delegate:nil cancelButtonTitle:@"Continue..." otherButtonTitles:nil ]; [alert show]; [alert release]; } I also have my S...

iPhone: image in table cell - wrong position & not scaled correctly in iPhone 3.0

Hi, I have a custom table cell in an iPhone 3.x app to show basketball player data, including a picture. Here's my code from the table controller: UIImageView *theImage = (UIImageView *) [cell viewWithTag:0]; theImage.image = [manager getSmallImageForPlayer: data.number]; theImage.frame = CGRectMake(14, 0, 30, 44); theImage....

xcodebuild + iPhone fail under ssh with Couldn't load plug-in 'com.apple.Xcode.iPhoneSupport'

I'm triying to compile my iPhone app from ssh. This is for my build tool that run in another machine. The base sdk is iPhone Device 3.0. The error is : "Couldn't load plug-in 'com.apple.Xcode.iPhoneSupport'" However, executing from the regular terminal run ok. Also directly from xcode. This is the log: [trtrrtrtr@mac-pro-de-trtrr-tr...

How do I have my UIViewController respond to a non-touch event?

Working with iPhone SDK 3.2 -- I have a complex custom UIControl that handles touches on the child controls. In certain cases, I want the parent UIControl to pass an event to the UIViewController, which will then take action outside the control. How do I do this cleanly? Thank you! ...

How can I send email from my application ?

I want to attach a video and send email from my application. I downloaded apples example code MailComposer. I compiled it. I did not get any errors or warnings. I sent the mail to my mail id. But, I could not see any mail in my inbox. I am working on simulator. I did not set any senders email id in simulator. How can I know whether ...

unclear use of @property in window app using core data

Looking through a Window based application ive used to experiment with as a way of getting my head around core data, ive noticed that the appdelegate has the following code myAppDelegate.h #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface myAppDelegate : NSObject <UIApplicationDelegate> { NSManagedObjectModel *managed...

how can I delete videos stored in documents folder ?

I have stored the videos in the documents folder. the path is /Users/sridhar/Library/Application Support/iPhone Simulator/User/Applications/EC177E77-8665-485C-93DE-62350FA6D0E7/Documents/air.mp4 I want to delete the video . How can I do it programmatically. ...

Core Animation question about swapping views

-(IBAction)buttonPressed1:(id)sender { SignView *tempVC = [[SignView alloc] initWithNibName:@"SignView" bundle:Nil]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; [UIView setAnimationDelay:0.0f]; [UIView setAnimationDuration:0.2f]; [self presentMod...

Unit test tools for iPhone development with Xcode

When developing iPhone apps with Xcode 3.2.1/Objective C, which unit test tools are recommended? I am new to the iPhone OS platform, and I am interested in your best practices. ...

how to have a sliding menu on the top of the page

hi, I am new to iphone programming. I was browsing through different apps at iTunes. Found this excellent menu. Can you folks help me to understand what is to be done technically to achieve this menu. The user can slide this menu from left to right or vice versa without disturbing the view in the bottom. how to achieve this ? Thanks in...

Replacing a UIImageView inside of an NSMutableArray - weird redrawing issue

I have an NSMutableArray of UIImageViews that have been added as subviews of a particular view. When I replace a view like this: UIImageView *tempview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]]; tempview.frame = CGRectMake(0, 0, 667, 920); [drawViewController.drawImage replaceObjectAtIndex:0 withObject...

iPhone SDK extract PDF text

Hi, i used some Quartz 2D examples to extract text from PDF with the callbacks CGPDFOperatorTableSetCallback(table, "TJ", arrayCallback); CGPDFOperatorTableSetCallback(table, "Tj", stringCallback); referencing the code from here: http://stackoverflow.com/questions/2362393/reading-pdf-files-as-string-through-iphone-application...

How can I use removeFromSuperView and dismissModalViewControllerAnimated at same time to remove two views ?

I have a UIViewController *view1 and another UIViewController *view2; I used presentModelViewController to navigate from view1 to view2. -(void)function:(id)sender { NSLog(@"The libraryFunction entered"); LibraryController *libraryController = [[LibraryController alloc]init]; [self presentModalViewController:libraryController anim...