xcode

UIImageView Centering Problem.

To understand my problem let's follow this steps. Open - XCode -> New Project -> View based application. Open View Controller.xib file. Drag an image-view into viewController's view. Place that image view on center of viewController's view. Apply size of 125x125 to image-view. Take any image with dimension of 320 width & 460 height. Dr...

Timezone calculation

How to find out the current time in different timezone in xcode for an iphone application? Suppose i'm in India and i want to know the current time in USA how do i get the time then. Thanks in advance Joy ...

XCode: "To download this update...". Is this dialog normal?

I'm getting a dialog box asking to enter my apple developer id & password in xcode. It just says something like "To download this update enter your information." then i goes away. Is this normal? Seems to me that this would be the perfect way for a trojan to get my apple id and pwd! ...

How to determine if an OS X dylib was linked with -flat_namespace

I have a third party OS X dylib that I'm using in my app and don't have easy access to its creator. I'd like to determine if it was linked with -flat_namespace. Is that possible? If so, how? ...

Automatically open terminal when debugging in xcode?

When debugging an executable in XCode, I very often have to open up a terminal window, navigate to the executable's working directory and do some work there. Is there any way to have XCode automatically open a terminal window at this location each time I debug my program? ...

One IBOutlet for two UILabels

I have two views within one .xib (one view for landscape, another for portrait). How can I use the same IBOutlet I've defined in @interface section for both labels if they have the same functionality. (ctrl+dragging to both of them does'n help-each time I drag to second, the first one loses its outlet). ...

Simulated iphone app quits, whenever I turned on debugging.

I always build my app choosing with 'Build and run' (not 'build and debug'). While the app running smoothly I opt to put a breakpoint over a line. When I do this the simulated application suddenly quits with a message 'Loading debugger..,Debugging terminated'. ...Actually, this happens only on putting breakpoint on first time. Any he...

Doxygen with Xcode

Hi, I'm trying to use Doxygen with Xcode. I followed the Apple tutorial. After several mistakes, I builded the project and generated the docs. I discovered that if you save the doxygen.config from Doxygen and you use space " " in the directory name you will have problem and others things. But there is one last problem: ./search/searc...

Resize view on iPhone when rotating

I have an application with many views. I want only a couple of the views to be able to rotate to landscape when the device is rotated. I found out that I couldn't use (BOOL)shouldAutorotateToInterfaceOrientation because that would rotate every view in my app. I found a solution to this problem here on Stack Overflow but now I have anothe...

Xcode: Codesigning binary only, no bundled resources

In Xcode (or from the command line), how do I codesign only the binary without including its bundled resources in the signature? ...

Setting up a view to draw to in Objective-C (iPhone) ?

Okay, so, I'm all new to iPhone and stuff, but I'm not even at programming, I have many years of experience with ActionScript 2.0 and 3.0, I want to set up a view, that I can also pass variables to. The view is gonna draw everything with Quartz. I tried to make another game where I tried to add a pointer to a NSMutableArray to the view ...

Validate a URL string in my iphone app

Hi, I am getting really frustrated and I cant seem to check if the user has entered a valid url or not. This is what I have tried: NSString *str = [NSString stringWithFormat:@"%@", [myurl.text stringByAddinPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSURL *aurl = [NSURL URLWithString:urlStr]; if(aurl == nil){ //Invalid...

How to send email when a link is clicked?

In my iPhone application I had an email address. If anyone touches touches that link an email should send to that email address. Is there any way for doing this? Anyone please help.. ...

Tips for transitioning from Visual Basic to Xcode

I've been programming in VB.net for a while now, and I finally got access to a mac to make ipod apps. What are some useful sites, videos, etc. that could help me get used to Objective C and the Xcode IDE? I've stumbled upon the samples on the apple dev site, but none of them really give good examples which I could learn the syntax of the...

How can we add an icon for a finished iPhone application?

How can we add an icon for a finished iPhone application? Simply giving an image in the project folder will solve my problem ? Can anyone please help me! ...

How can I zoom an image in my iPhone application?

I had an image in image in my iPhone application. The text in the image is not readable as it is very small. How can I zoom it at run time? Anyone please help.. ...

Calculating File size before download

Ok ! Coming to the point directly. What I want to do is explained as follows. I have an url of MP3 file. ( for example Sound File ) Now, When user starts application. Download should start & for that I have implemented following methods. -(void)viewDidLoad { [super viewDidLoad]; NSURL *url=[NSURL URLWithString:@"http://xyz.pqr.com/ab...

How to know in Xcode how much memory occupied by my object graph?

I have one big object graph. It begins from one root object and its properties are arrays which consist of other objects and so on. I want to know how much memory is eating by this graph at all. Have Xcode any instrument that will show me this information by root object (maybe something like tree of all my objects)? Or maybe it is poss...

Access a viewControllers View

Hi, I am trying to get to grips with programmatically configuring views. I have a UIViewController and want to add a UIButton to its view. Well, I created the button: UIButton *newViewButton = [[UIButton alloc] initWithFrame:CGRectMake(baseX + viewPlusX, baseY + viewPlusY, viewWidth, viewHeight)]; [newViewButton setTitle:@"View" forSta...

Xcode, print all files?

Is there a way in Xcode to print all your "Classes" source files in one go, without going through them one by one? gary ...