My problem is- i have three cell, within that i have each textfield now i want the user is clicking in which textbox. This method textFieldDidEndEditing gives me the value which user is inputting but i dont get any tag of the textfield
...
Can i create a single project in XCode such that there are 2 targets, one using C++ and another using Objective-C??
...
Hi!
I have a BlahAppDelegate, BlahViewController and no nibs in my iPhone app project. Only some subclasses of UIView in addition. All this is situated in main.m.
My app has 6 subclassed UIViews. Each of it contains 18 UIImageViews.
I need to get autorotating work. Or custom rotating. Or something. For example it would be nice to fade t...
Silly question - but is there a way to download the iPhone SDK without Xcode when Apple releases an update?
...
Hello everyone,
I wanted to create a very simple method that switches between views in a view based application. For some reason, when the views are switched, the first view is removed and instead of viewing the second view, I see a white screen.
This is my method:
FirstViewController *firstViewController = [[FirstViewController allo...
Is it possible to to hard code the IBActions and IBOutlets in XCode rather then drag them manually in Interface Builder?
...
Hi,
I've searched loads already and couldn't find an answer.
I have a normal UILabel, defined this way:
UILabel *totalColors = [[[UILabel alloc] initWithFrame:CGRectMake(5, 7, 120, 69)] autorelease];
totalColors.text = [NSString stringWithFormat:@"%d", total];
totalColors.font = [UIFont fontWithName:@"Arial-BoldMT" size:60...
Hi,
I'm building an application that takes advantage of Mac OS X 10.6-only technologies, but without giving up backwards compatibility to 10.5 Leopard.
The way I do this is by setting the 10.6 SDK as the base SDK, weak-linking all frameworks and setting the deployment target to 10.5 as described in:
http://developer.apple.com/mac/libr...
how to add timer to loop. i am making a urlConnection so i want that the loop execute for a time and if there is no connection it should exit.
Does it work.....
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1f]];
Thanks in advance.
...
i know c and I want to develop applications with GUI for Mac OS. Where do I start?
...
I have an issue where an image resource (Default.png) is included in a build for the simulator but is not being included when built for device. I have verified this by looking at the *.app package contents? I have also verified that the resource is selected for the active target. Any thoughts on what else I can look at to debug this?
Th...
I have a C library that I'm planning to use in an iPhone application. It writes a lot of its debug information to stderr. Is there an easy way to redirect stderr/stdout to my XCode console?
Will I have to write wrappers that call NSLog? If so, what would be the best way of doing so?
...
I have followed the instructions Apple publishes for unit testing applications on iPhone and things work great when I set the active SDK to "iPhone Simulator". I have it configured to always build and run my tests as part of building the application itself.
Apple implies (by omission) that this should work all of the time, but the tests...
Hi, All.
When I set break point at some line and press Build&Go my breakpoints become yellow and my program continues. Nothing happens. I`ve unchecked Object Lazy ..., optimization levels, active target is Debug, load debugging symbols is checked. I also want to mention that my debugger never worked before.
...
I am developing an iPhone app with someone else. The app works fine for me, but he is running into a bug. We think this bug is related to the fact that he is getting multiple Application directories for this same app. In my ~/Library/Application Support/iPhone Simulator/User/Applications, I only have one folder at all times.
He says tha...
The following code
#include <stdio.h>
template <typename T, T v> class Tem
{
T t;
Tem()
{
t = v;
}
};
typedef Tem<FILE*,NULL> TemFile;
when compiled in a .mm file (Objective C++) by Xcode on MacOS X, throws the following error:
error: could not convert template argument '0' to 'FILE*'.
What's going on, pleas...
Hello all,
I have an integer variable (time) in one view controller whose value I need in another view controller. Here's the code:
MediaMeterViewController
// TRP - On Touch Down event, start the timer
-(IBAction) startTimer
{
time = 0;
// TRP - Start a timer
timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self s...
I installed Cocoa Browser Air at home from the same installation file (for 2.4.1) that works fine at work.
Its info for Mac OS X 10.6 looks OK, but there's nothing under either iPhone 3.1 or 3.2.
I've installed the appropriate Documentation Sets in Xcode Preferences->Documentation, and I have an iPhone SDK, which is required to refer t...
in my code:
#import "MyViewController.h"
#import "AVFoundation/AVAudioPlayer.h"
- (IBAction)playSound{
AVAudioPlayer *myExampleSound;
NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"];
myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExampl...
ive set the shouldAutorotateToInterfaceOrientation to return to YES for orientation then i noticed as the iphone rotates the background rotates as well which is a UIImageView. how do i have the background fixed so it doesnt rotate?
...