iphone

Reducing the borders of a s7graphview.

For my first attempt at graphing on the iPhone, I decided to use s7graphview. I copied most of the code from the given example, except for setting up the graphView frame and some of the datasource method's returns. I need the graphs to be small. They are going to be set in a UIScrollView and must be 136 pixels high. (IB units) Currently...

Recording video on an iPhone 3G

I am writing an application that records video on an iPhone using the UIImagePickerController class. The application works fine with the iPhone 4 and iPhone 3GS but I am getting an error on the iPhone 3G. Are there limitations on the iPhone 3G that prevent me from recording video? I am getting the following error: 2010-09-14 16:27:15...

iPhone UIAutomation button tap does not fire

I am trying to use UIAutomation in Instruments with the iPhone Simulator and the latest iOS SDK 4.1. Here is the snippet of javascript that is having a problem: // there are sufficient delays here to make sure the view is loaded UIATarget.localTarget().frontMostApp().logElementTree(); main.buttons()["theButton"].tap(); UIALogger.logMes...

[iPhone] Rendering animation to movie

Hi @ll I have a serious problem with Core Animation in combination with the AV Foundation. I want to render the animation of several UIImages to a movie file. The animation of the images should only be the change from one image to the next, just like shown here http://appsamuck.com/day2.html. But I don't want to display this animation ...

No memory leaks, yet still running out of memory?

In my cocos2d application I have run through it using instruments and removed all memory leaks. I have my game outputting how much memory is in use on the screen and it is constantly rising as the game progresses until I eventually run out of memory. The amount of objects on screen doesn't increase by very much each level. Its a fairly s...

applicationWillEnterForeground vs. applicationDidBecomeActive, applicationWillResignActive vs. applicationDidEnterBackground

Which is the proper delegate to implement when an application is waking up from being in the background and you want it to prep it to be active? applicationWillEnterForeground vs applicationDidBecomeActive -- What's the difference? Which is the proper delegate to implement for when an application is going to sleep and you want to prep ...

iPhone webapp change "Done" button

I'm developing a webapp on the iPhone. When entering text in a textfield, a keyboard pops up. Is there a way to change the wording for the "Done" key or hide it? I know how to change the "return" key, I want to change the blue "Done" key. Thank you. ...

iAd: ADBannerViewDelegate methods only called once after viewDidLoad()

I have the following ADBannerViewDelegate implementations: #pragma mark ADBannerViewDelegate Methods - (void)bannerViewDidLoadAd:(ADBannerView *)banner { self.headerView.frame = CGRectMake(0, 0, 320, 94); [self.tableView setTableHeaderView:headerView]; adBannerView.hidden = FALSE; } - (void)bannerView:(ADBannerView *)banner...

Dictionary's and plist files

Hi all, I have written some code that pulls info from a plist file and does a couple of things then eventually pops this data into a table. This all works fine, the problem is I wrote the code pulling the data from a plist file within the resources folder, but the actual file will be created via an action and stored in memory. I need ...

App Crashes because iAd Fails to Resume in Time

My app runs fine when I don't have iAds. As soon as I display an iAd the system shuts down my app because the iAd can't resume in time. How do I resolve this? Elapsed total CPU time (seconds): 1.380 (user 0.880, system 0.500), 14% CPU Elapsed application CPU time (seconds): 0.000, 0% CPU Thread 0: 0 libSystem.B.dylib ...

In xcode, how do I make an animation stop on an Image?

I know the 'nil' clears the imageView at the end of the animation. But is there a way to end it on one of the images? When I run it without 'nil' at the end it's a lovely error. imageView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"image1.png"], ...

iphone mapview bring first and last annotation to the front

I need some code which can be used outside of the mk* functions. I need to run my custom function to bring the FIRST and LAST markers in an array to the front. (so on top of all the other markers on my screen). I have tried [self.view bringSubviewToFront:[[mapView annotations]objectAtIndex: 0]]; I have used [[mapView annotations]objec...

drawRect function hindering performance

I am working on drawing a snake which moves using a CADisplayLink using DrawRect. The problem is when the snake is small the speed is fine, but when the snake grows in length the snake becomes really slow. I keep track of the snake using the followig variables: - variable to keep track of snakes head - variable to keep track of snakes ...

replaceSublayer example

I have the following code and I can't seem to get it to work. First I create a view with a layer. UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 100)] autorelease]; CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = view.bounds; gradient.colors = [NSArray arrayWithObjects:(id)[[UIColor blackColor...

Framework Recommendation for developing distributed iPhone / iPad applications

Is there a distributed application framework (commercial is okay as well) that supports iPhone / iPad ? What I'm looking for in the framework: Allows me to focus on the application logic I don't have to code "low-level" network programming (I've done it too many times that I dont wanna do it again =p) Should be actively maintained (po...

Replace UITableView and UITableViewController with Three20

Hi i have a working UITableViewController and UITableView with custom cells but i want to add some async functionality from Three20, so i would like to migrate my current classes to the ones from Three20, TTTableViewController and TTTableViewController, to use the TTImageView inside of my custom cell. The functionality would be download ...

Problem positioning banner on top of my UITableView

I want to be able to display an ADBannerView right above my UITabBar (which displays a UITableView). Unfortunately my banner is not positioning correctly. It will appear right below the UITableView, and then as soon as I scroll, the banner will remain in the middle of my UITableView. I want the banner to appear right above the UITabBar,...

iPhone targeted websites

I have to do a short paper (6-8 pages) (at my collage, I'm a student) on the subject: "Developing web-sites for iPhone". I have not yet done any work related to mobile browsers, so I am pretty clueless how things work in that department. I don't even have an iPhone :( Please answer these basic questions (I will be generous in upvoting ...

NSPredicate causes EXC_BAD_ACCESS - but only for Release configuration on device

My app works great in the simulator under any configuration and in debug configuration on my device but it is crashing on a fetch request I am doing as soon as I create a NSPredicate. Here is the offending code: - (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText { //some fetch request code code ...

Playing movies from the library in an iPhone app

Hi guys, Does anyone know whether it is possible to play a video that was synched with iTunes from within an application of your own? In other words - it is of course possible to programmatically create a movie player inside an application, and play movies via HTTP or movies locally stored within the home directory of the application. ...