Simple array loop question Objective-C
How can you make this work? numbers = [[NSMutableArray alloc] initWithObjects: ({int x = 0; while (x <= 60 ) { return x; x++; } })]; Thanks :) ...
How can you make this work? numbers = [[NSMutableArray alloc] initWithObjects: ({int x = 0; while (x <= 60 ) { return x; x++; } })]; Thanks :) ...
I am currently investigating the potential for programatically adjusting the zoom level and on which area of the page the zoom is panned to. Is this possible either by manipulating the UIWebView or by firing custom javascript calls to the embedded browser? ...
Hi everyone. I encountered a wierd problem. In my UITableView, I am able to move a row from a section to another, but if I change the size of my rows, it doesn't work anymore. I can still move resized rows in their own section, but not in another one. I implement two methods for my row reordering process: - (void)tableView:(UITableView...
This one is a doozy... My buddy just downloaded the iPhone SDK on his Snow Leopard MacBook Pro. No matter what kind of project he creates (Window Based, View Based, etc...,) he can't create or use his own xib files. The project will compile and run fine until he adds a new xib file. Here are some symptoms: When he selects a pre-gener...
Hi everybody, I'm building right now an iPhone app that basically is organized as follows: We have a Navigation Controller with a Table View all inside of a TabBar (a classic in iPhone apps) then in one of my tabs I fill the table view with data extracted from a DB in sqlite, so this far I have no problems, I display the drill down cor...
Hello.!! Anyone please help me to get the value of UIDatePicker to UILable on button click for IpHone Application. Thanks. ...
I've been working on an iPhone app which uses Core Data and I would like to use NSPersistentDocument if I can. I keep seeing discussions about using NSPersistentDocument in iPhone apps but no mention of which iPhone Framework defines NSPersistentDocument? ...
I am an experienced video-slot type game developer. There is a small gaming company who wants to try their luck with an iPhone game, and they want me to work on it. They want to know how long it would take me to develop a game using Unity3D, given that they provide all the graphics and game rules. I don't have any experience with Unity3D...
Looking to do classic OpenGL mouse picking in ES. I'd prefer not to use third party libs, GLU ports and OpenGL name stacks, etc, are out. This pretty much leaves inverse view transformation and ray intersection, correct? I've gotten pretty far with the help of: http://trac.bookofhook.com/bookofhook/trac.cgi/wiki/MousePicking http://ei...
Hi, using iphone sdk 3.1.2. Is there anyway of knowing if a Bluetooth headset is connected to the device? Don't need any info except if its connected or not. This is different from knowing if one was plugged in or not which one can do via a Property Listener of an Audio Session. Thanks ...
I have a UITableViewController which is starting to get a bit crazy with all the switch statements for each UITableView delegate. Does anyone have any suggestions or examples of more of a data driven implementation for a UITableViewController? I'm thinking some type of data structure which would hold references of where to go to get ce...
view based app, .m - (void)viewDidLoad { [super viewDidLoad]; self.locationManager = [[[CLLocationManager alloc] init] autorelease]; self.locationManager.delegate = self; [[self locationManager] startUpdatingLocation]; } - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLoc...
I have an iPhone tabbar application with "n" number tabs. I'd like to have a UIpagecontrol in place so I could swipe between tabs. Could anyone tell me how I could do this? Examples are very helpful. Much appreciated. ...
Hey, Im trying to download "profile_image_url" images (.jpg) from twitter and display them in my app. Im trying to resize any images that are not what I'm expecting them to be. In the process of debugging an issue, I ran into this strange behavior. Code: NSLog(@"%d %d %d %d",48,image.size.width,image.size.height,48); Prints: 2...
I'm facing this issue when I'm calling AdMob ad with [rootController.view addSubview:adMobAd]; //setup the ad Upon returning from the ad being clicked the AdMob frame moves down 20 pixels. However it seems that this is not a AdMob issue, but a issue that is also discussed here: http://discussions.info.apple.com/thread.jspa?threadID=2...
Y'hello.. Yep, it's me again, sorry. I am trying to .. um, see the code, you'll understand. If not, I'll explain later. // When row is selected - (void)pickerView:(UIPickerView *)pickerTimer didSelectRow:(NSInteger)row inComponent:(NSInteger)component { switch (row) { case 0: NSLog(@"It obviously worked.0"); ...
Hi, using iphone sdk 3.1.2. Is there anyway of knowing if a Bluetoth headset is connected to the device? Don't need any info except if its connected or not. This is different from knowing if one was plugged in or not which one can do via a Property Listener of an Audio Session. Thanks ...
I would like to have a UISearchBar with a solid color rather than a gradient. I have this: UISearchBar *mySearchBar = [[UISearchBar alloc] initWithFrame:self.tableView.bounds]; [mySearchBar sizeToFit]; mySearchBar.showsCancelButton = NO; mySearchBar.tintColor = [UIColor colorWithRed:0.976 green:0.489 blue:0.0824 alpha:1.0]; And it gi...
Hi, I know about http://www.dragonfiresdk.com/index.htm but is there other tools that I can use to write C++ for iPhone? Is there a book maybe? ...
Basically, I have an array of buttons I want to iterate and highlight (among other things) one after another, with a delay in-between. Seems like an easy task, but I can't seem to manage to get it to work cleanly while still being responsive. I started out with this: for MyButton *button in buttons { [button highlight]; [button...