xcode

NSURL is nil when using NSDate

Hi guys, I have an NSURL which contains a URL and a variable that is an NSDate: NSURL *url = [[[NSURL alloc] initWithString:[NSString stringWithFormat:@"http://www.googlebio.com/xml_test.aspx?date=%@",self.storeDate]] autorelease]; I also tried it this way but to no avail: NSString*string = [NSString stringWithFormat:@"http://www.go...

How to convert today's date into Day of the Year for iPhone?

I am trying to do this in Xcode... Today's Date = Day of the year October 13th = 303 (I think) January 1st = 1 December 31st = 365 NSDate to get todays date, then I'm out of idea =( ...

iphone: create provisional build then send to someone else

how can i create a provisional build and then send it to my work colleague so they can view it on their iphone? I have there udid number if that helps ...

iphone xcode - Twitter api or snippet

I've seen a few "Share" twitter or FB on some iphone. Is there any framework or SDK for this or some code snippet to copy from. I dont want to write it from scratch if there is something already available. ...

xcode iphone bluetooth chat between device

I want to know if there is a framework or method/technique that will allow me to write an iphone/ipad that will allow one device to act as a "Leader" and the other devices as "Followers" in a shared book reading. For example: Device 1: Leader Device 2: Follower Device 1: opens an book app and turns to page 11 Device 2: opens the same ...

App crashes with "Watchdog has expired." message. No stack trace or crash dump.

My app is crashing with the following message in the Xcode debugger: Watchdog has expired. Remote device was disconnected? Debugging session terminated. The Debugger has exited due to signal 15 (SIGTERM).The Debugger has exited due to signal 15 (SIGTERM). The crash is quite severe and reboots the device most of the time. The debug...

iPhone, I need to reuse an NSArray which has constant values in different views, how?

I have the following array. NSArray *arrayDisplay = [[NSArray alloc] initWithObjects:@"Daily", @"Weekly", @"Monthly", nil]; I need to use it in two views, I'm concerned that I may make changes and forget to change the other in the future. So I'd like to declare it once and reuse it. How should I do this? ...

Autoimport callbacks of delegate in XCode (iOS)

Hi all, as the tilte is possible autoimport or there is an option in xcode that allow to import all callbacks of a delegate(as MKMapviewdelegate or other)? I use this option in Eclipse (Java) to import getters/setters methods to access class variables. Thanks in advance. ...

can you build apps with xcode 3.2.4 and submit to apple?

hi i have a project built with the 4.1 sdk, I dont have that current sdk. So i am going to download it. The thing is on the apple website, it says download xcode 3.2.4 with 4.1 sdk. Can you built applications with xcode 3.2.4? and then can you send it to apple for submission? or will it not go through submission as xcode 3.2.4 is still...

Dividing a project into multiple Xcode project files

An iPad project I have been working on has become bloated with a huge number of files. The application is a prototype and we are considering ways to prevent this when we rewrite it. One of the members of our team suggests dividing all of the components into separate Xcode projects which will be included in a master Xcode project. Is t...

NSUserDefaults Question

If I set an NSUserDefault in one file(playerdata.m) could I access that value from another file(calculator.m)? ...

IPhone AdHoc Distribution Profile

This is my first app :) I have an app that already has a myapp-info.plist file (I think it was created when I started the project). The preparation instructions for making an Ad-Hoc Build is telling me to create an entitlements.plist file. But it replaces my existing .plist file. When I tried this last time I couldn't get it to insta...

Xcode suddenly very slow

My Xcode speed has come down to a crawl. I have no idea why. CPU activity is very low on both cores, gobs of memory. It's almost as if it's waiting for something but I have no idea what. I have disconnected all USB and FireWire devices but it helped only a little bit. Any ideas? ...

insertNewObjectForEntityForName returns wrong type

Hello everyone, I've been pulling my hair for the last few hours trying to figure out why insertNewObjectForEntityForName is returning NSManagedObject even though I'm trying to insert an entity of my own type. Things I have checked a thousand times: Class name is set to the correct value in the diagram designer Entity has many-to-man...

Code signing issue: Developer Certificate expired, help?

The last time I deployed on a device was last week. Since that time, I've been tweaking on the simulator. My developer certificate expired on Oct 11th. I tried to deploy on my iPhone today and got some code sign errors. I checked it out and discovered my developer certificate expired, so I went ahead and renewed it on the Provisionin...

Local Notification

When Notification receive os show an alert , is it possible to play sound instead of this alert? and when notification receive os add a red circle on the top of app's icon , is it possible to disable it(means not show this red circle)? ...

xcode - how to write multiple lines in a label

I have a xib file of type View XIB. In it I have a View controller, and in the View controller I have a label. I have long text that I want to break, but it doesn't - it gets truncated. I tried this solution - I did it in the attribute window - but it doesn't help. ...

To set an order of initialization of objects at an application launch

It is possible to set an order of initialization of objects at an application launch? For example: I have two objects in IB: myObj1, myObj2. Both of them implement method -initWithCoder: Properties of objects sets in IB. myObject2 Initialize is depend from properties of myObj1. Question: Is exist methods that set order of objects i...

image display in uiscrollview

hello all.Am facing a probem with my scrollview.Am displaying the image in a scrollview programatically and i added the zooming and paning effects.When i run the application image is displaying in the scroll view but it is not in centre(like it is displaying at right corner and some part of image is inside the scrollview)After zooming wh...

problem with console.

I do have Console problem. Its not printing any thing.. when i run at-least i need to get system time.data.. it not even printing system data time... and not even NSLog statement. thanks in advance. ...