ipad

Assign to my UIButton what the editButtonItem from the NavigationBar does

Hello I have a TableView on my View. I somehow do not have a Navigation bar. I only have UIButtons and I want one of my buttons to do exactly what the editButtonItem. How must I proceed to do that? ...

Trying to understand memory management on the iOS platform

Hello. Here's a block of code that has leaks... NSString *filename = [NSString stringWithFormat:@"%@.png", sketchID]; CGImageRef imageRef = CGBitmapContextCreateImage(paintView.canvas.mBitmapContext); UIImage* image = [[UIImage alloc] initWithCGImage:imageRef]; NSData* imageData = UIImagePNGRepresentation(image); Where are they? In...

Does any one know how to modify the Speak Here Sample Code to record streaming audio?

Does anyone know how to modify the code Speak Here from Apple. I need to modify it to record streaming audio using Matt Gemmell AudioStreamer classes but somehow I can't find how to select the recording source... Could you help? ...

UIInterfaceOrentation on iPad

I have an app that is a game, and it does not look or work right in Landscape. Right now My code is: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Overriden to allow any orientation. return (interfaceOrientation == UIInterfaceOrientationPortrait); } And that allows it only to run i...

What's the simplest way to obtain the current weather and forecast for an iPhone app?

Using iOS 4, what's the quickest way to obtain the user's current location (assuming they grant it to you) and use it to obtain the current weather conditions and forecast? I'm mainly interested in solutions that don't have any licensing restrictions and don't use APIs that will ban the app from the app store. Many of the other relat...

Why is Instruments reporting memory leaks in this code?

Quick question, Instruments is reporting a leak here... MyViewController *myVC = [[MyViewController alloc] initWithNibName:@"myView" bundle:nil]; [self.navigationController pushViewController:myVC animated:YES]; //<<<<---- !00% leak according to Instruments [myVC release]; I understand the myVC is retained by the nav controller,...

Testing application on iPad device

Hi all, I need to get the statistical details( memory details, object allocations etc.) , when my app is running on the actual device. Not in the simulator. Is there a way to attach the instruments or some other tool to device? ( When i build and debug on the device from xcode). Is it true that memory details that shown in the simulato...

UISearchDisplayController Without Dimming?

Hi everyone. I am writing a SplitView iPad app. Inside the DetailViewController, there's a little view that contains a UITableView and a UISearchBar and its controller. This view does not represent the whole screen space reserved for the DetailViewController. Actually, it uses just half of it. There's an UIImageView on the other half. ...

how do i make sense of this crash report(SIGABRT)? Regarding parsing an xml file on another host computer + iPad

Basically, imagine this. i have an iPad , a Windows computer with apache http server which is hosting an xml file, and a wifi network that connects them both together The xml parser im using is NSXMLParser in my - (void)parseXMLFileAtURL method this is my code NSError * error; NSURLResponse * response; NSMutableURLRequest *requ...

Problem with small numbers in Objective C 2.0

I created a calculator class that does basic +,-, %, * and sin, cos, tan, sqrt and other math functions. I have all the variables of type double, everything is working fine for big numbers, so I can calculate numbers like 1.35E122, but the problem is with extremely small numbers. For example if I do calculation 1/98556321 I get 0 where ...

MAC OS Activity Monitor Information

Hi all, I'm using Activity monitor to measure performance in my iPad app, in addition to Instruments. There are 4 columns which I cant understand. Real Memory,Private memory,Shared Memory and Virtual Memory. Do you know the meaning of these 4 terms and which one I should use? ...

Make Sticky header of web page in Safari on iPad

I want to make a sticky header like this url: http://www.cssplay.co.uk/layouts/fixit.html has done! But put this url on Safari of iPad, it also fails to fix the header. Does anyone knows how to do sticky header on iPad Safari? Thanks in advance! ...

iPad orientation change - How to animate load of new nib/xib

In a UIViewController am detecting the view's change in orientation using didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation. I then load a nib that corresponds to the correct device orientation using [[NSBundle mainBundle] loadNibNamed: owner: options:]. Works ok, but is a little clunky looking. Is the...

CATiledLAyer and Memory usage (IPHONE SDK)

HI there. I've tryed to develop a little magazine reader for IPAD I use a subClass of CAtiledLAyer whit drawInContex Method and I draw the pdf pages into a scrollView. So i've 2 problem, 1-when i try the app whit simulator all work fine but when i try the app on ipad the layer drawing it's slow , 2-the memory usage allways increases a...

initialPlaybackTime in MPMoviePlayerViewController class - iPad

Hello Guys, Can I set initial play back time in MPMoviePlayerViewController(means movie should start at 30 seconds). I am using MPMoviePlayerViewController to play movie on iPad. Thanks ...

Accordion Menu in XCODE

hey, I'm trying to make a accordion menu in Objective-C for a iPad app. The only thing I know is that I should look over core animation. Couldn't find anything helpfull. Can anyone help me ? at least give me a few pointers. ...

Invert typing letters on custom keyboard

Hi , every one i create persian custom keyboard. I am using this code : NSString *text = textPad.text; NSRange selectedRange = textPad.selectedRange; text = [text stringByReplacingCharactersInRange:selectedRange withString:@"A"]; textPad.text = text; textPad.selectedRange = selectedRange; but the problem is when user type a word for...

Using HTML5 web database to store files for offline access

I am attempting to create a simple web app for iPad which needs to be used in places with no internet connectivity. The app is essential a simple "slideshow" but also includes some video files (typically around 100MB.) Initially I was planning on using HTML5's offline manifest caching to sync the assets to the iPad's memory when interne...

iOS custom URL scheme for contacts app?

Hi Everyone, So I am trying to write an app that does a person search of my company. When it returns a result, I want to include a feature to add the person to the iPad contacts app with the push of a button. The problem is I can't find a way to launch the contacts app through a custom URL scheme with the person info as parameters. Do...

Resizing UIPopover and its UITableView programmatically

Hello folks, I have a UIPopoverController which loads with a custom controller which is a subclass of UITableViewController. It serves to present a number of suggestions, under a search bar. When my popover opens the UITableView inside it show as many rows as possible; the first ones show the choices I set up, the last ones are blank. W...