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];
...
Creating some simple html pages specific for the iphone, and would like to use autocomplete for one of my textboxes. Is it possible to do this with javascript and if so, how?
...
I have a UITableView on one view that loads in data at the start of the application, and then later when a user enters text into a box and hits a button, I re-query the database, re-populate the original NSMutableArray that stores the data for the table.
All of that is working perfectly. In some logging statements I can tell that the ar...
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 have an existing iPhone application which starts from a UIViewController.
What I want to do is add two new table views, one which will require the navigation controller. Can anyone provide info on how to retrofit this into my app or will I need to start again from scratch using the navigation template?
Thanks
Aidan
...
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...
My iPhone app started logging this error:
lo->hi recycling invariant violated!
followed by:
Program received signal: “EXC_BAD_ACCESS”
whenever I launched it on my iPod (3.1.3) and sometimes when I launch it in the simulator.
What does this error mean, and how can I fix it?
I am using cover-flow in my app. I think this might be the pr...
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...
Two questions:
this code
#ifdef __IPHONE_3_0
// iPhone 3.0 specific stuff
#else
// iPhone 2.2 specific stuff
#endif
compiles specific codes for specific versions of the iPhone. How could this be transformed to compile for a range of devices? For example: if iphone version < 3.1 or if version >= 3.2, and so one...
2) where do...
I am barely new to IPhone Programming so can anyone please shed some light for my problem.
Current SetUp:
I have Tabbar Controller(4 TabbarItem's)
When u click the secondtabbaritem -> It calls second.xib which is of type UIViewController.
My Requirement:
I have a button inside the view.
So when i click the button, it should load anoth...
Hello all,
I have a UIPickerView implemented in one of my pages that depends on the didSelectRow delegate method.
An odd behavior I have noticed is when the user moves a wheel and leaves it between selections, then the wheel will move very slowly to the closest selection. The didSelectRow event will not fire until this is complete, so...
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...
I am currently developing a web application to be run in iPad. How do I control which keyboard is displayed when a user touches a text field?
input type="text" pattern="[0-9]*"
I have tried the above html codes which tested working in ITouch but in the Apple iPad SDK emulator, it imply brings up the normal keyboard.
Any idea?
Thank...
Not a Noob as yesterday, but still green. I have been playing around with the code that Elisabeth Robson has put together HERE. I have a UITabbarcontoller and a IUNavigationController they seem to work fine. I have a UITableviewController to which I loads my NSMutable array. The user clicks a cell and didSelectRowAtIndexPath xib is loade...
OK So, I'm learning/using xpath for a basic application that's effectively ripping data off another website.
I need to gain the knowledge of each persons Country/Suburb/area.
In some instances you can get Australia/Victoria/Melbourne for instance.
Others may just be Australia/Melbourne.
Or even just Melbourne OR just Australia.
So I'...
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...
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...
Hello everyone
I have a project using ASIHTTP to multi download files from a site
when I add a new request:
[networkQueue cancelAllOperations];
[networkQueue setDownloadProgressDelegate:a];
[networkQueue setDelegate:self];
[networkQueue setRequestDidFinishSelector:@selector(requestDone:)];
NSURL *url = [NSURL URLWithString:@"http...
I'm making an iPhone game that has several maps with graphics attached. The graphics may allow the player to pass through them or block them. Is there an application for OS X that will allow me to pass some of this work off to a designer without having to reinvent the wheel and develop a map creator.
...