My code works fine on my ipod, it's not slow and doesn't crash, but using Instruments I discovered 826 leaked blocks.
The Header file is:
#import "CountySelectionViewController.h"
#import "iProspectLiteAnnotation.h"
#import "iProspectLiteAnnotationView.h"
#import <CoreLocation/CoreLocation.h>
#import <iAd/iAd.h>
#import <sqlite3.h>
#imp...
I'd like to play two videos at the same time from an HTML page in a UIWebView. By default any playing video is stopped when another is started. This happens even if the two videos live in different web views.
Is there a way to force continued play for the first video?
...
So I am currently working on a universal binary for an app that is to be ran on iPad and iPhone. The differences are basically only UI changes.
So, with that in mind, I have a class called ConfigurationController that is of type UIViewController. I then sub class ConfigurationController into iPadConfigurationController and iPhoneConfigu...
I am working on a project that requires me to send raw headerless ulaw or linear pcm data to a server.
I am using the AVAudioRecorder and I can save out audio files to the phone quite easily, but the problem is that it no matter what I try and do, they get wrapped in a caf file or stamped with some kind of header.
It's my understandin...
Why, when an image does not exist at a specified URL, does didFailWithError not get called? For example:
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com/images/someImageIknowDoesntExist.jpg"]
cachePolicy:NSURLRequestReturnCacheDataElseLoad
...
I want to read a sound file from application bundle, copy it, play with its maximum volume level(Gain value or peak power, I'm not sure about the technical name of it), and then write it as another file to the bundle again.
I did the copying and writing part. Resulting file is identical to input file. I use AudioFileReadBytes() and Audi...
Hello.
My game has 3 background songs. I would like the game to set the background music to off when there is ipod music playing, else it will play the last played piece of music. When the muser changes the music with the ipod music on, the ipod music should go away and the background music plays. The problem is, the second time I try t...
I'm declaring an array of primitives on one of my objects, and cannot seem to access it from the outside. I'm fairly new at ObjectiveC, is there some obvious mistake I'm making?
header file:
@interface MyObject : NSObject {
//@public <-- this shouldn't be necessary, right? I have accessors!
float *d;
}
@property float *d;
...
I'm trying to understand what these offsets are in an iphone stack trace:
11 FOO 0x0005684a +[TTURLRequest requestWithURL:delegate:] + 42
12 FOO 0x00056840 +[TTURLRequest requestWithURL:delegate:] + 32
What are the hex numbers 0x0005684a and 0x00056840? What are the numbers +42, and +...
I'm seeing the following crash on two different devices (an iphone 3g and an ipod touch) when in adhoc mode, although it seems to be OK when building in debug mode for those devices. It also seems to be OK on iPhone 4's.
Here's the stack trace that I'm getting in ad hoc mode:
https://gist.github.com/af5ea32f2dacc795387e
From what I c...
I have a UITableViewCell subclass that does its drawing in a drawRect: method. The whole rectangle is custom drawn, including the background.
I was able to get very complex cells while keeping the scrolling very smooth.
My problem: I call [table deselectRowAtIndexPath:path animated:YES]; whenever the view appears, in order to comply wit...
Hi,
after multiple days of banging my head against the wall and having sleepless nights I'm hoping to find some help here. I've gone through various posts here, but none of the answers seem to provide a resolution for me.
In short, my problem is that my App crashes after heavy usage (>10min) of the UIWebView (e.g. opening larger news p...
My UITableView, actually all my subview, when i rotate the UINavigationController that is their parent.
Any Ideas?
...
I'm currently using the below code to turn on and off my iPhone 4 LED light and it's working great, but the only problem is that every time I turn the LED on there is a slight delay. However it turns off instantly. I need it to fire instantly to implement a strobe like feature, and because it's just more convenient.
I've noticed that in...
What are good ways of building groups/folders?
I've tried by feature (UI for a feature plus model etc) with a common group. I've also tried by UI, model, etc.
The former keeps like things together which fits the iPhone paradigm nicely. The latter means I jump around a bit more.
What do you think?
...
Hello
I have an application which when the user taps central iphone's button, the application is sent to background. But I want it to be closed.
I can hand event and close it, but may be there is an configuration setting to deny running in the background?
thank you
...
I have been using FTP on an iPhone 3GS in my app for almost a year with no problems. On my new iPhone 4 FTP fails all the time when using the 3G network. I have tried on 4 other iPhone 4's with the same result. I have tried multiple FTP servers with the same result.
Steps to Reproduce:
1) Turn off wifi on iPhone 4.
2) Build and instal...
I have a form that looks like the following (see image). If the user hits the Login button, I want the keypad to disappear. How do I do that.
Note that TextFieldDelegate methods wouldnt get called since the user is simply hitting the UIButton (Login). Hence, anything I can put in the IBAction for this button?
...
Hi guys,
I'm trying to create a project in .Net for IPhone using Monotouch. My problem is:
I have a DLL generated by Visual Studio 2010. This DLL just have an Interface and two other classes. I can use with no problems in my project in Visual Studio, but when I try to use the same one in Monotouch, i've got this error:
Building: Hello...
I just updated my app so that it's a universal app. In doing so I added support for UIPopoverController in a certain place. Now the app seems to be crashing on 3.1.3 iPhone/iTouch devices:
OS Version: iPhone OS 3.1.3 (7E18)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000001, 0xe7ffdefe
Crash...