I just upgraded to Xcode 3.2 and am using the Build and Analyze feature to check old code for errors.
While doing something I thought was innocuous, I get this error:
"Dead store: Value stored to 'newBook' during it's initialization is never read in SpellTest.m"
#define kSpellBookFilename @"TestBookSaver"
-(void)testBookLoadFromDisk...
Hi All,
I am a noob in iPhone app development, I am trying to create an application (with some buttons to call my contacts).
Until yesterday I had OS 3.0 installed on my phone and my application restarted after the call completed. Today I updated my phone to 3.1 OS and I am not able to get the application to restart after the call.
T...
Hi,
I am new to Mac OS and iPhone Development.
I had already installed the earlier iPhone SDK (version prior to the latest 3.1) into my Mac OS 10.6. I was not able to run
the hello world program as while loading the simulator it was giving me an error saying that it cannot find the right SDK.
I had assumed that the old SDK is not com...
Hi guys!
Now I'm working on an iPhone project and I'm using instances of the class NSMutableArray and suddenly, with no reason, at execution time the NSMutableArray converts into a UICachedDeviceRGBColor becoming unusable.
I do not know what to do, the same object had been working fine until today.
I got this error:
*** -[UICachedDe...
The app crashes on the tester's device (with OS 3.1) but does well on the simulator and my device with OS 3.0.
I have the crash log but I am finding it difficult to understand the reason of this crash as I cannot see the mentioned crashed thread (usually shown in a crash log).
What does this mean? "Unknown thread crashed with unknown f...
Hi folks!
I need help to understand the crash log i received from the client. The app works fine on my phone but it crashes with him. I have OS 3.0 installed here while my client has upgraded to OS 3.1.
Client reported app crashes usually when he starts the app.
Why I am getting EXC_CRASH (SIGABRT)? Can anybody point me in the right d...
Hi,
I am trying to pick a video from the photo library. In principle I know how to do it you set the mediaType of the image picker to an NSArray with kUTTypeMovie as its only object.
But this doesn't seem to work on an iPhone 3G. Since OS 3.1 you can store videos you've received in your photo library. When you start the build in 'Photos...
I have a UIPickerView, in it's delegate I'm trying to customize the view for a row. I'm using the 3.1 SDK.
So in the delegate I have:
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view {
// view.backgroundColor = [UIColor redColor];
return view...
I have:
NSDate *d = [[NSDate alloc] init];
unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;
NSDateComponents *dc = [calendar components:unitFlags fromDate:d];
// doing something with dc.day, dc.month, dc.year
[dc release];
[d release];
I've tried removing the "doing something.. part", just did a get a...
I'm working on an iPhone project in which the developer that created it has left the company. The Boss asked me to ensure it compiles on the 3.1 iPhone SDK.
After installing, it built and ran fine just once on the device.
After that, it still builds okay, but if I try to run it on the device, it halts saying
Error from Debugger: Erro...
Hi
I have the following code:
SecondViewController *secondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[imagePicker setCameraOverlayView:secondView.view];
[imagePicker setShowsCameraControls:NO];
[self presentModalViewCon...
Hi:
I need to rotate the content of the mapView according to the compass value:
float myHeadingValue = newHeading.trueHeading;
and for rotating the map I use this:
[mapView setTransform:CGAffineTransformMakeRotation( [self degreesToRadians:myHeadingValue] )];
but it rotates the view, not the content of the view.
How can I make it...
Hi, I have a problem where my UITableView (group style) has a black "tip" above it's rounded corner.
I'm setting up the background of the tableview like so:
[meetingTableView setBackgroundColor:[[UIColor alloc] initWithPatternImage:[[UIImage alloc] initWithContentsOfFile:@"background.png"]]];
And my table view ends up looking like th...
Ok, so I am trying to a pagescrollView with two views each with a different view controller so I can work on each different view. I got apple's sample code and it seems that they created a lot of different view "lazily as they said" how can this code be altered so that I can have the first page be one view controller and the second page ...
My app uses the camera, and I added the zoom function thanks to 3.1 API (cameraViewTransform most importantly). But I want my app to run also on 3.0 (without the zoom of course). The problem is that, I cannot compile the app in 3.0 due to this line which calls 3.1 properties:
CGAffineTransform initialTransform = photoPicker.cameraViewTr...
I'm using the MapKit part of the iPhone SDK. According to the MKMapViewDelegate documentation the calloutAccessory event should handle taps on the annotation view. This works just fine as long as the callout view is a UIButton. I've tried to get it to work for a UISegmentedControl but I can't seem to get the event to fire.
(void)mapVie...
Hello,
I'm trying to use the UIImagePickerController interface from OS 3.1, with the cameraOverlayView and takePicture, but I've clearly failed to understand how this works, and so I'm not getting the behaviour I want.
What I want to do is open the camera and take a picture automatically without having to having the user interact with ...
I'm trying to install an ad hoc-provisioned iPhone app compiled under the 3.1.2 SDK on a device running iPhone OS 3.0 via iTunes. I'm getting a message "The application was not installed because it requires a newer version of iPhone OS." The build settings for the project are "iPhone Device 3.0 (Base SDK)" and "Distribution." The app suc...
Hi there,
I have 48 items each named item1,item2,item3,...,item48,etc in interface builder and have 2 strings and 1 image URL linked to each item.
ON clicked, the item present a modal view which should contains the 3 specific variables in a tableview.
how do i program such that when each item is clicked, the modal view will display the...
My problem is that programatically setting the selectedRange of UITextView selects the text, but does not visually indicate it's selected. Does this sound like a bug in OS 3.0/3.1. More importantly, any solution or suggestions for getting the selection to display? (sample project linked at bottom of message)
How do I know it's selected ...