When I run this sample code on a 2nd generation IPod touch with OS version 3.0, it works fine. However when I run it on a 1st generation IPod touch with OS version 2.2.1, it doesn't. I am playing an mp3 for my background music but it still plays the SFX mp3 on the 3.0 device just fine. I am wondering if something has to be done differ...
I'm working on a quick application for my church to assist their recording of services. As of right now, they record the service with protools (LE 6.5 to be specific), run a compressor, normalizer, and limiter to the track, and export it as a wav.
Prior to me helping them, they used another tool to split that audio file into 5 minute s...
I'm still working on my leaks problem and I don't know how to solve this one I have leaks on each arrayTmp addObject lines
NSMutableArray *arrayTmp= [[NSMutableArray alloc] init];
[arrayTmp addObject:[NSDictionary dictionaryWithObjectsAndKeys:@"1", @"value", @"Value 1", @"name", nil]];
[arrayTmp addObject:[NSDictionary dictionaryWithO...
In my application, I want to have a Webview and a button on the bottom bar (should it be a tab, bar button, or navigation item?).
In this Webview, it will display a web page of user information. For example, user profiles on a website.
Example URL: http://myusersite.com?uid=1
What I am trying to accomplish is allow the application use...
I have already created a class named "Category"
In some online examples I have seen - they have implemented #import "Category.h"
In some examples - class in pre declared like @category before @interface new class
So I am confused
=> When to use #import &
=> When to use @class?
...
In the viewDidLoad method I add any combination of these and I can't get it to work:
CGRect appFrame = [[UIScreen mainScreen] applicationFrame];
[[self tableView] setBounds:appFrame];
// self.view.frame = appFrame;
// self.view.bounds = appFrame;
// [[self tableVew] setFrame:appFrame];
self.view.autoresizingMask = UIViewAutoresizin...
Hi
I currently try to fill and NSMutableArray with something like this:
deck = [[NSMutableArray alloc] initWithCapacity:52];
for (int suit = 0; suit <= 3; suit++) {
for (int value = 1; value <= 13; value++) {
ANormalCard *card = [[ANormalCard alloc] initWithSuit:suit value:value];
[deck addObject:card];
[card autorelease...
This is a rather simple example and probably wouldn't make much of a difference anyway, but say I have this drawing code in a view to draw a gradient:
@interface SomeView : UIView
@end
@implementation SomeView
- (void)drawRect:(CGRect)rect
{
const CGContextRef ctx = UIGraphicsGetCurrentContext();
// Set fill color to white
...
I don't know how it happened, but all of a sudden in my table view I can't make an empty selection anymore. Like a table view row always has to be selected, and it can't be deselected by clicking somewhere else in the table view. I can select a different row, but I can't make an empty selection.
In the Interface Builder attributes for t...
What else is needed to display image to full tableview width?
UIImage *image = [UIImage imageNamed:@"balloon_2.png"];
[image stretchableImageWithLeftCapWidth:15 topCapHeight:13];
cell.image = image;
...
I am new to interface builder and I would like to have a screen which contains a 3x3 grid of a UIView each of which contain a UIImageView, and 4 UILabels.
My logic is probably flawed but the way I am trying to achieve this was to:
Create a UIView Nib file MyUIView.nib and layout in IB with an imageView and 4 labels
Create a UIView su...
Hi,
I'm working on an iPhone app that performs some communication with the server to be initialized the first time it's run. I have a class ServerCommunication with methods for each of the basic tasks to be performed (authenticate user, get activation key, download updates, etc.), and a new instance of ServerCommunication is created for...
I have some code that results in a EXC_BAD_ACCESS error:
recordIDAsString = [
NSString stringWithFormat:@"%i", (int)abRecord.recordID
];
propertyIDAsString = [
NSString stringWithFormat:@"%i", (int)abProperty.propertyID
];
identifierAsString = [
NSString stringWithFormat:@"%i", (int)abProperty.identifier
];
recordIDAsString, proper...
I am using a custom UITableViewCell subclass to provide content in my tableview. The cell subclass is called ValueTableViewCell. When this specific cell is selected, a UIActionSheet is to appear.
UIActionSheet *genderSheet = [[UIActionSheet alloc] initWithTitle:@"Choose Gender"
delegate:nil
cancelButtonTit...
Is there an easy way to do a case insensitive lookup in an NSArray of NSStrings? Reference for NSArray mentions sorting case insensitively but nothing about lookup.
I can easily write my own fn to do it but would like to know if there's an easier way.
...
The reason I ask is my app lets users cache map tiles. Does anyone know the real cap on how much data I can let them store?
...
I have a UIViewController that implements UITextViewDelegate and is connected as the delegate to my UITextView. Whenever the text view is tapped, I get a call to:
- (void)textFieldDidBeginEditing:(UITextField *)sender
and whenever the contents of the view change (keyboard, programmatic modification), I get calls to:
- (void)textVi...
What would be your approach to creating a home page like the new facebook 3.0 app has to offer? There's a grid of 3x3 UIButtons it appears if you look here:
If you wanted to replicate a similar user interface, would you programmatically have 9 individual buttons that you place on the screen through some kind of loop? If so what would ...
In the Clock application under alarms, this behavior can be verified. After creating a new alarm, try opening the alarm, editing the time of the alarm. WHILE THE DIAL IS STILL MOVING, hit the save button. The value you had scrolled to will be replaced by the value that the scrollers were last stopped at. I am using a UIDatePicker in a UI...
Does anyone have experience using the mySettings api's link text for reading and storing app preferences into a FlipSide View? If so, can you please share some Objective-c sample code on how to get it working with a standard utility flipside view? Any help would be appreciated.
...