From the XML below I'm trying to retrieve the second element in the sequence. Notice the end node is the same as the start in each entry, this is making its retrieval a bit tricky.
I've tried setting a for loop at the startElementSAX function to evaluate and pick-up the Width="60" attribute. Although this will sort the data correctly i...
In Apple's documentation and example code, I see lproj folders both named with the name of the language, such as "English", and with an ISO 639 code, such as "en".
What is the definitive naming requirement? I have not been able to find it.
If there isn't one, what are the advantages and disadvantages of each type of name?
...
I have a UIView subclass (CustomView for purposes of this question) that has its own handling of all touches events (Began, Moved, Ended, Cancelled). I also have a UIButton that is a sibling of CustomView that overlaps it.
For example, my view hierarchy looks like this:
UIView (Controller's view)
CustomView with frame (0, 0, 300, 300...
Hi all,
I'm setting a view background to a repeating image using colorWithPatternImage. If the view size changes after I've set the background the first time, the image gets stretched instead of repeating for the new size - any ideas how I can fix this?
This is what I'm doing:
set the view's background in viewDidLoad:
frameView.bac...
I add a label on to the view
UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10.0f, 320.0f, 300.0f, 75.0f)];
[titleLabel setText:[BusinessLogic instance].homeMessage];
then I move to another view and come back. This results in having two label controls on top of each other. What I want to do is:
check if the label contr...
Hey Guys I'm having issues with NSUserDefaults and I don't quite understand what's going on
My App has 5 levels and each level does the exact same thing with NSUserDefaults (Retrieves the levels defaults, changes the value as the user plays the level and then sets the defaults and syncronizes at the end of the level) the first 4 levels....
I have a button that I'm creating in a UIViewController like so:
TOLoginButton* button = [[[TOLoginButton alloc] initWithFrame:CGRectMake(60,180,200,40)] autorelease];
[self.view addSubview:button];
The button is a UIControll and I'm trying to call another UIViewController from within the touchUpInside method, below is what I have but...
My controller inherits UITableViewController:
The cells of the table are custom and are 100% filled by a UIWebView
I would like to have the user click anywhere in the UIWebView and have the UITableViewDelegate's function notified:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
Is the...
Curious:
Why is it that Foundation on OS X contains a wrapper for CFHost (NSHost) but not CFSocket, and Foundation on iPhone OS doesn't even have NSHost?
And as an aside, are there any libraries or has any written any wrappers for CFHost and CFSocket on the iPhone?
...
Hey there, I'm a designer thats really new to programming with xcode or Objective-C in general. I'm trying to create a few simple apps to try to get a better hang on programming the iPhone. Currently, I'm working on a very basic app which has 3 textfields, a name field and two number fields, and when you click the button, it shows in the...
I want to draw with a texture brush, in a color of my choice, on a white background using OpenGLES.
I have a bitmap image which I use CG to load and turn into a texture. This bitmap is mostly black, but has a white circle in the center that I want to use as the "brush". In other words, I want the black part to vanish in the final compo...
A while ago I remember seeing a constant of some kind that defined the animation rate of the Keyboard on the iPhone and I can not for the life of me remember where I saw it....any insight?
...
After updating to Snow Leopard I get an error when trying to install the Xcode.mpkg. The error gives no detailed message to what caused the failure. When trying to compile previous projects that worked fine in Leopard I now get an error message of "error: There is no SDK with the name or path 'iphoneos2.1'".
Does anyone have any ideas ...
I'm getting this same error, but I've checked to make sure the properties were set correctly in the .h file.
Here's the code:
NSUInteger theSizesCount = [theWho.theSizes count];
The error is "error: request for member theSizes in something not a strucutre or union. This .m file is importing 6 .h files, and 4 of them have the same prop...
Can a UIViewcontroller contain more than one UIView?
...
Hi all,
I need to invoke a UIDatePicker when i tap on a textfield. usually when we tap on a textfield the keyboard pop ups. but i need a date picker instead of that. can anyone help me please...!
Thank you in advance.
...
if (cell == nil) {
//cell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(0, 0, 260, 44) reuseIdentifier:CellIdentifier] autorelease];
//The line above works like a breeze
cell = [[[UITableViewCell alloc] initWithStyle:initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; //This is the line that...
hi all,
i am devloping an album application where user have to select an image from image picker,when he selects a particular image it is displaying in a image view of frame(0,0,320,460)which is displaying perfectly.but after saving that particular image to his personal album list that is displaying in a frame of(33,23,255,365) which i...
I learnt that to pause and resume my app (due to interruptions) i have to use the application delegate method "applicationWillResignActive" . But am not clear of the statements within this function. can anyone explain as to what should be enclosed in this method?
...
Hi, I am experimenting a bit with the iPhone 3GS and its magnetic sensors. It is quite simple to get the heading and the angle of the north pole seen from the top of the device. Also getting the position of the device itself via accelerometer is quite easy. But getting it all together deserves some math knowledge regarding vector calcula...