Hey,
I'm looking for an in-depth breakdown/explanation of the iphone's view usage. Like, what controllers have what types of views, how they relate (child <> parent), how they can be nested, added and removed, etc.
Preferably something with some pictures would be nice too (I'm a visual learner).
But yeah, in-depth, technical, explana...
I have a tabbar application and on the first tab I have a MKMapView. What I want to do is from somewhere else in the application, switch the active tab to the mapview and set the mapview's region based on the data in the previous view (the one with the button to switch to the mapview).
What I've tried is:
[self.tabBarController setSele...
I have an XML data source that has HTML & CSS formatted data contained in one of the document nodes. What is the proper way to escape this data so that I can properly parse it? For clarification, I am using TouchXML in Objective-C to parse the data. (Not that it should matter but I wanted to include all pertinent information.)
Any help ...
In Xcode,
I'd like to go File -> New Project -> and pick View Based Application. But it doesn't have the "Use core data for storage" (like some of the other projects). So I can't assign a core data to it.
I'd like to know if this is an issue, and what's the best route to take for what I'm trying to do? (Which is build a core data based...
Hi, I'm creating a simple app to simply save a person's name and a number associated with this person. I've created a class for person like this:
@interface Person : NSObject {
NSString *name;
NSInteger serialNumber;
}
In the mainViewController, I've created an input text field to enter the name and then automatically assign a...
I'm working on a relatively simple iPhone application that has a multi-round Timer with a number of settings such as the number of rounds and round length. We allow certain settings to be upated while the timer is running which means the timer may be reading from the same memory that the settings are writing. There are no critical sect...
I'm trying to draw a standard NSImage in white instead of black. The following works fine for drawing the image in black in the current NSGraphicsContext:
NSImage* image = [NSImage imageNamed:NSImageNameEnterFullScreenTemplate];
[image drawInRect:r fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
I expected NSComposi...
Is it possible to use @selector and performSelector: (or similar) with methods using variable arguments list?
I'm writing a class that can be assigned a delegate to override the default behavior. In the presence of a delegate select method calls made on an instance of that class will be forward to the same corresponding delegate method,...
I have a UIView doing a simple animation. It adjusts its y position from 100 to 130 and then reverses. I want it to keep repeating so I have the repeat counter set to 999. Upon user input, I want to take the same UIView and adjust the x position. This is done by means of another UIView animation. The problem is that when the 2nd ani...
Hi all,
i have a question, totally newbie but i would like to know how can i get to compare and image in an if else statement?
i have an image lets say it is "img.png" and i have it displayed in an imageview already in the application, however in the codes i would like to compare if the image show is "img.png"
I understand that for st...
hi guys. I'm really struggling with ABAddressBookGetPersonWithRecordID at the moment. I am saving an ID, and then trying to call it back up again.
Currently im doing something simple to test the linking, but its not working.
First, I can read objects from my iphone simulator address book using:
-(BOOL)peoplePickerNavigationController:...
What is the best way when setting up a UI for the iPhone to differentiate between multiple items of the same type (i.e. 2 sliders) currently I am assigning the controls unique "tags" and then querying them in Xcode. Is this the way to go or am I missing something else?
-(IBAction)switchChanged:(UISwitch*)senderSwitch {
if([senderSwi...
Using the following code I am always getting category.subCategories count to be 0 using the Xcode debugger
Category *category = [[Category alloc] init];
category.title = @"Pubs & Bars";
category.icon = @"cat_pubs&bars";
category.subCategories == [[NSMutableArray alloc] init];
Category *subCategory = [[Category alloc] init];
subCategory...
I'm trying to create a modal view which pops up when the user presses a button. The modal view has a navigation bar with a map view as the main view. I'm having trouble setting this up in Interface Builder. When I set the view outlet for my File's Owner's view to the view inside the Navigation Controller, the only thing that show up is t...
I'm creating a number of static custom UITableViewCells and have dragged a UISegmentedControl onto one of the custom cells.
Whilst the segmented control allows me to alter its width I cannot alter its height in Interface Builder (that property is greyed out on 44 in the 'size' section of the property inspector).
I know that a UISegmen...
Hey all,
i try to modify my didSelectRowAtIndexPath Method to use my AddView also for editing (only with filled textfields). But it is not working! I just enter edit mode, check if(self.editing) and do something like:
if (self.editing) {
AddViewController *viewController = [[AddViewController alloc]
...
I try to build an Input which is able to show one or more Token at the beginning of line.
You can see an example what I'm trying to receive in the image below. (screenshot shows google-macsearch)
http://www.freeimagehosting.net/uploads/4a268855a0.jpg
Cocoa provides the NSToken class, but I like to do it by myself and custom, but I don'...
Hi,
I've been trying to create a transparent table view recently but I'm not having much luck. The idea is to have a MapView (or anything for an example...) underneath the table view (grouped) where the table cells are solid but the rest of the table view is transparent, showing the map behind.
What I've done so far is create a UITable...
NSMutableArray *Number=[NSArray arrayWithObjects: @"1", @"2", @"3", @"4", @"5", @"6", nil];
I have an array of interger and need to read them one by one.
Can anyone please tell me how to code it?
...
Hi,
I've a table view to which I add columns dynamically. It must be done this way because I can't predict how many or which columns I will need.
Some columns are checkboxes but I can't click on them when I run my application. The column and checkbox are set to be editable but if I click on the checkbox the check won't get set. Am I m...