Detect if the iPhone is running a Debug/Distribution build at runtime.
Is it possible at runtime to detect if the application that is running was compiled with debug or distribution. ...
Is it possible at runtime to detect if the application that is running was compiled with debug or distribution. ...
I'm in the process of switching from AVAudioPlayer to OpenAL using the Finch sound engine. I need to do metering, i.e. get the average peak levels. Finch sound engine does not provide this, and I'm completely new to OpenAL. How can I do this? Any examples would be really appreciated. ...
I've heard both MacRuby and Ruby CocoaBridge discussed in relation to iPhone/iPad development in Ruby. Do I need one or both of these? ...
Hi, every iPhone and iPod Touch has got the Apple "Addresses" App ... when you create a new record, there is a tableview. The first line contains an button (to add an image) and a tableview cell. How would I do such a tableview cell with a button and a regular cell in one row ? Thanks a lot ! Sebastian ...
I have developed an app for my private use (i.e. not going to the AppStore) that uses the private WiFiManager framework found in iPhone OS 3.x. I have no troubles scanning for networks and binding with them. However, I am connecting to an ad hoc network so I have to sit around and wait while the interface assigns a default ip address to ...
Hi all I am using MPMoviePlayerController in Ipad application. Video is not showing but audio comes, same code working well for Iphone NSBundle *bundle = [NSBundle mainBundle]; NSString *moviePath = [bundle pathForResource:@"video" ofType:@"mp4"]; movieURL = [NSURL fileURLWithPath:moviePath]; MPMoviePlayerController *IntroMovie = [[M...
Hello, I am developing a native iPhone app, where end user can purchase calling cards of different rates. The problem I am facing is that, I don't what can be several options to integrate payment / online purchase feature and they can be integrated. Few sites I have read that, you can implement this using In App Purchase, but there us...
I am drawing content to a UITableViewCell and it is working well, but I'm trying to understand if there is a better way of doing this. Each cell has the following components: Thumbnail on the left side - could come from server so it is loaded async Title String - variable length so each cell could be different height Timestamp String ...
I have drawn into a CGContext of a UIView. - (void)drawRect:(CGRect)rect { [self drawInContext:UIGraphicsGetCurrentContext()] } I would like to save what I have drawn to a png file. Is there a simple solution? EDIT: Based on suggestions below - here's what I have so far.... -(void)createImage { NSString* outFile = [NSHom...
Hello Friends, Anyone have idea how to pass value from iPhone application to the REST-Webservice using POST method.? ex: http://mysite.com/services/updatescore/uid=1234&score=12658 I want to send this information using POST request. - How can I do it.? Thanks. ...
I have a UITableView with a custom background image set like this: self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"mybg.png"]]; The background appears fine, but my UITableViewCells (default cells, not custom) have some sort of weird tint to them, and the UILabel containing the "New Project" text a...
I have what I would consider a small sized iPhone app that uses SQLite. There is a singleton domain object which gets data from a SQLite database. Is it better to create and open the SQLite connection for each request, or to open the DB once and hold on to it for the duration of the app. The app's reason for being is the domain object...
Hi, I want to call "presentmodalviewcontroller" when the iPhone / iPod Touch is rotated to landscape mode with a flip animation. When it gets rotated back to portrait, I want to present the first view again, again with the flip animation. Weren't able to find something working on the web :( I'm sure you can help me :) Thanks a lot ! Se...
I'm uploading a file from an iPhone to a server with an HTTP POST, and monitoring the progress in NSURLConnection's connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite. The problem is that the progress is not smooth. The beginning of the file goes by very fast in four 32K chunks, then the progress ticks by more slowly ...
Hi all, i would to have alternate 2 colors of rows, like the first black, the second white, the third black, etc, etc... my approach is like a basic exercise of programming to calculate if a number is odd number or not: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSStr...
I'm using the template for a "Utility Application". In the "FlipSideViewController", I added an IBOutlet for a UINavigationController, navController. In the code, I added the navController just fine. The rootViewController loads perfectly: navController.viewControllers = [[NSArray arrayWithObject:rootViewController] retain]; [self.vi...
I'm building an iPad app, and would like to use a "tiled" display with objects arranged in a scrollable grid, similar to the iPhone/iPad home screen and the iPad photos app. What I'm trying to achieve: (iTunes link) Is there any pre-built way in the SDK to do this? If not, how should I go about creating my own? Update: I think I ...
I'm trying to put together a simple example of using some of the quartz api. specifically i'm working on trying to draw an image to a CGLayer to cache it. Then draw that layer to another graphics context more frequently. Here's some source code for the example: header: http://pastebin.com/1qKnexDt class: http://pastebin.com/60FRj5dZ T...
hi , i want create image animation , i have 50 images with png format now i want set images name ... something like this but doesnt work ! my images name are : iamge_0000 to image_0050 pasheAnimation.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"pashe_0000.png"],nil]; [pasheA...
Hey Guys! Me again! Can someone provide me with some example code of how to properly load images in a tablecell without making the tableview glitch while scrolling. For example if you look at fandago's app, when scrolling through their movies you can see that the image is loaded asynchronously so that the scroll isnt jumping, lagging, or...