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,...
Hi,
The app I'm currently working on has a split view on one of the views I push with my navController. In my root view I have the function that is called when a cell is selected. In there I call a function in my detail view that should create and add a button to the sub view. While debugging I follow the program all the way through the...
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.
...
HI, everyone,
I want to ask a question about the iPhone. I am writing a iPhone program, but I can only test the program in the iPhone simulator. Can I test the app in the iPad simulator? thank you.
...
Hi. I've got a core data app with 2 views. The first view lists "Rooms", the second lists "Scenes" in rooms. The Rooms page has an edit NavItem button, which when pressed enables an add NavItem button. You can delete and add rooms from here. Added rooms simply appear with a default "New Room" name in the table. The second view is a list ...
Hello. I have the following code that saves the users sketch data to a file...
//Auto Save the sketch
NSString *filename = [NSString stringWithFormat:@"%@.png", sketchID];
CGImageRef imageRef = CGBitmapContextCreateImage(paintView.canvas.mBitmapContext);
UIImage* image = [[UIImage alloc] initWithCGImage:imageRef];
NSData* imageData = U...
Hello. I'd like to build in some weather functionality into my app and I'm going to be using the NOAA weather web service to retrieve the weather information. The NOAA website has a great deal of information on how the data should be requested and how the resulting data is structured. I'm new to iOS development, so I just need a littl...
Currently implementing vectorial interface elements on iOS is very peculiar, UIImage advertises support only for raster formats but i am able to set a pdf file as the image of a UIButton in IB and it renders with good antialiasing, however the image is not visible on either iphone or ipad running iOS 4.x and 3.x, the only way to have it...
I think I've done all I should to detect a shake, but motionEnded:withEvent: never gets called. (One wrinkle is that I don't have a UIViewController - my app is based on the "OpenGL ES App" template.)
I've added application.applicationSupportsShakeToEdit = YES; to my application:didFinishLaunchingWithOptions:, and
- (BOOL)canBecomeFir...
Is there any way to determine whether the Accelerate.framework is available at runtime from straight C or C++ files?
The examples I've found for conditional coding all seem to require Objective-C introspection (e.g., respondsToSelector) and/or Objective-C apis (e.g., UIDevice's systemVersion member)
...
Let me preface this by saying that I'm a very raw iPhone developer.
I'm making a static library that can be used in iPhone apps. It needs to show a view but static libraries, as I understand it, cannot include nibs (or xibs, in my case). So, I have created a separate bundle containing the xib I need. I then include the bundle along with...
I have web application that uses JasperReports for PDF report generation. I'd like to write a mobile version of my application, specifically iPhone development (iOS). Will this be possible?
...
I am using a music player property for iPod player controller.
// .h
@property (nonatomic, retain) MPMusicPlayerController *ipodPlayer;
// .m
ipodPlayer = [MPMusicPlayerController iPodMusicPlayer];
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
[notificationCenter addObserver:self selector:@selector(...
I'm trying to understand NSURLConnection performance on a 3G network from an iPhone. I have the following test code
-(void)doTest2 {
max = 5;
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
NSURLRequest *request2 = [[[NSURLRequest alloc] initWithURL:url] autorelease];
NSURLConnection *conn=[[NSURLConn...
Hello. I'm learning to use the NSXMLParser API for the iOS platform and so far it's very easy to use. I'm having a small problem, however, in the foundCharacters method. As I understand it, it shouldn't pick up any whitespace since the foundIgnorableWhitespace method is supposed to catch that, but it looks like it is. Here's the my c...
The example that XCode generates for an OpenGL ES App, creates a square using the following coordinates:
static const GLfloat squareVertices[] = {
-0.5f, -0.33f,
0.5f, -0.33f,
-0.5f, 0.33f,
0.5f, 0.33f,
};
How does this generate a square when the sides are clearly of unequal length? Has the scaling been set up ...
I am creating an iOS app that needs to get some data from a web page. My first though was to use NSXMLParser initWithContentsOfURL: and parse the HTML with the NSXMLParser delegate. However this approach seems like it could quickly become painful (if, for example, the HTML changed I would have to rewrite the parsing code which could be a...
I have several custom UIMenuItems that do things with a selection in a UIWebView. After the action has been run on that selection I want to hide the selection handles just as copy: does.
I have tried using window.getSelection().removeAllRanges(); and that works in that window.getSelection() no longer returns anything but the text selec...
Does somebody know a rich text editor (like NSTextView for Mac OS X) library for the iOS platform?
...
Im kind of newb to audio processing but have ExtAudioFile converting pcm to kAudioFormatMPEG4AAC and if i save the file as .caf it plays fine. but not as .m4a (on desktop)
looking at the audio file it seems the header doesnt match another .m4a header and seems very short and has 'caaf' in it. my guess is it might be mpeg4aac data but th...