Here is my code:
- (void)loadView {
//hard coded array of content for each site
// CC
NSMutableArray *allccContent = [[NSMutableArray alloc] init];
NSString *cc1 = @"House Model";
NSString *cc2 = @"James Dexter History";
[allccContent addObject: cc1];
[cc1 release];
[allccContent addObject: cc2];
[cc2 release];
...
We're migrating our dev shop away from XCode to MonoTouch.
In Objective-C, the [super] is the same as a call to base in C#?
...
Hi
I've tried to setup a controller for a document in a document based application, and i'm not sure what is the correct for doing that.
In MyDocument.xib I have set the File's Owner as MyDocument class and the I connected the outlets and actions to it but it doesn't seem to work
Could anybody give me a hand on this?
Cheers
...
I'm trying to figure out how to link all the views I've made in interface builder with a navigation controller but I'm finding the concept a little tricky to grasp.
All the example code I have looked at shows how to do this with arrays that store all your controllers and i'm finding it difficult to adapt to my project as my views have b...
So I dynamically create 3 UIButtons (for now), with this loop:
NSMutableArray *sites = [[NSMutableArray alloc] init];
NSString *one = @"Constution Center";
NSString *two = @"Franklin Court";
NSString *three = @"Presidents House";
[sites addObject: one];
[one release];
[sites addObject: two];
[two re...
Hi everyone,
I was wondering if I need to release a copied NSObject? For example, I create only one dictionary that I copy into an array:
Code:
for (int num = 0; num < [object count]; num++) {
[dictionary setObject:[object objectAtIndex:num] forKey:@"x"];
[array addObject:[dictionary copy]];
}
Do I have to release the diction...
Does writeToFile:atomically, add data to an existing .plist? Is it possible to modify a value in a .plist ? SHould the app be recompiled to take effect the change?
I have a custom .plist list in my app. The structure is as below:
<array>
<dict>
<key>Title</key>
<string>MyTitle</string>
<key>Measurement</key>
<dict>
...
On the iPhone, I would like to do some operations on an image in a separate thread. Rather than dealing with semiphores, locking, etc., I'd like to use the 'One Object, One Thread' method of safely writing this concurrent operation. I'm not sure what is the correct way to copy my object into a new thread so that the object is not acces...
Well, I've started with iPod/iPhone programming using Head First iPhone Development (O'reilly) and I'm typing code out of the book. There are two problems, one is programming related and the other is not.
I don't understand the format of objective-c methods. I'm getting an few errors now, based on source code from the book. Which lead...
I am typing code from Head First iPhone Development (O'reilly) and Xcode will build and run fine once and then, without any modification to the code, the second build will fail. Why?(I'm using command+R)
EDIT:
the first error was something similar to "can not take an object as an argument."
...
My application requires data from a server in order to run. The first thing it does is displays a view controller (LoadingViewController) that is responsible for checking if the data is saved to my PersistentStoreCoordinator. If the data isn't cached locally, it gets it from my server and caches it, and posts a notification that the Lo...
I want to print values of all the types like char, long... so on and also nsdate, nsdictionary, frame ....I want to now to print values of each type variables.
...
I'm a little freaked out by the results I'm getting when I do modulo arithmetic in Objective-C. -1 % 3 is coming out to be -1, which isn't the right answer: according to my understanding, it should be 2. -2 % 3 is coming out to -2, which also isn't right: it should be 1.
Is there another method I should be using besides the % operator ...
Hey All,
i am very new to iphone Development and i am asked to use nsxml parser to parse xml from a google api. i have parsed another url which has xml but i am not able to parse google's because it is using id's to store data rather than inside tag. i.e.
<forecast_information>
<city data="Anaheim, CA"/>
<postal_code data="anah...
Hi. I'm developing iphone app with UITabBarController as main view. Every ViewController in each tab is UINavigationController which must have a same button in leftBarButtonItem. Can I inherit some class from UINavigationController and override it's -(id) initWithRootViewController:(UIViewController *)rootViewController method to realize...
We can share information in our apps by sending emails in our app.
I don't know how to put pictures in the email body.
like this:
http://digitaldaily.allthingsd.com/files/2007/06/iphone_email_jenny.jpg
...
Hello,
I'm working with the ID3 framework in Xcode (which has since disappeared off the face of the web - including google cache!).
I'm testing out an import mp3 feature which allows them to edit the tags as they import them. One of the test cases is a corrupt or invalid mp3 with no proper id3 header. The problem I'm having is that whe...
Hi,
I want to create a program where i can place images on a UIImagePickerController and i also wanted to zoom the picture so i need to place it on a UIScrollView. Is my approach of combining the UIImagePickerController and UIScrollView possible?All has to be done programatically too. I already have a program with a UIImage place on a U...
Is it possible to get the email address which the user has entered?
I know it's possible to set the email address but there is no method to get one.
Is there any know solution for that?
...
I added it from existing files JSON folder and also added the framework and import the "JSON/JSON.h". After that while running apps, It is giving three errors that is no such files, they are
#import "SBJSON.h"
#import "NSObject+SBJSON.h"
#import "NSString+SBJSON.h"
When i select framework, Two of the files containing in it Headers a...