iphone

Changing to llvm compiler when deploying iPhone app.

I found this: http://stackoverflow.com/questions/1412882/changing-compiler-to-llvm-clang-on-existing-iphone-project But that does not help. I am still getting the error. Setting the BaseSDK to the iPhoneSimulator 3.1 seems to work. But I don't think this is the right thing to do... ...

Picture frames - iPhone

I'd like to be able to take a picture (camera or library) and overlay something like a picture frame on it, then save it back to the camera roll. Should I be looking into OpenGL?or, what? Thanks for the pointers. ...

is task/application manager available in iphone?

hello Is there any functionality of a task manager in iphone like we have in windows? if so how to access it? thanks ...

Objective-C: High-level language?

I have managed to avoid C and C++ up until now (except for a few HelloWorlds), and have instead worked in higher-level languages. I've worked and lived in VB6, then Java, then C#, then ActionScript, and now Ruby. I've recently become curious about programming for the IPod Touch/IPhone. Though I've seen some possibilities for avoiding Ob...

set seconds to zero for nsdate

I'm trying to get nsdate from uidatepicker, but it constantly returns me a date time with trailing 20 seconds. How can I manually set NSDate's second to zero? ...

TabBarController not working with different nib files

Hi, I've got a tabbarcontroller, and a MainView.nib that houses 3 Views and ViewControllers within the MainView.nib. When I try to associate another nib with its own ViewController to the fourth tabBar, I get errors on tapping the bar, I'm probably doing something wrong cuz usually the same principle works perfect in a non tabBarContr...

Runtime Object Inspector for iPhone?

I'd like to be able to add a runtime object inspector to my iPhone app, mostly for debugging purposes. This would let me do something like: [inspector addObject:someObject]; and in my app, a view would appear that would let me browse and change the public properties of the object in question. Possibly it would work with a subset o...

Examples of interpreters embedded in iPhone Applications?

I'm trying to find examples of interpreted languages ported to the iPhone, with source code available to show how to embed it, without Jailbreaking the device: I've found: Ruby: http://www.cocos2d-iphone.org/forum/topic/1163 Lua: http://www.mobileorchard.com/announcing-iphone-wax-native-uikit-iphone-apps-written-in-lua/ and I'd like...

Setting UINavigationbar properties in viewDidLoad does nothing

I've tried setting the style of the UINavigationbar to be a translucent style in the viewDidLoad method of my controller. But nothing is changed. Why? I set the property using the standard code like self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; ...

How to support landscape mode with views loading from nib?

I'm trying to create a custom actionSheet view from a view loaded in a nib. I can unload the the view from the nib fine and then I'm adding the view to the main view: UIWindow* window = [UIApplication sharedApplication].keyWindow; UIView* mainView = [window.subviews objectAtIndex:0]; [mainView addSubview:self]; but...

Search is only matching words at the beginning.

In one of the code examples from Apple, they give an example of searching: for (Person *person in personsOfInterest) { NSComparisonResult nameResult = [person.name compare:searchText options:(NSCaseInsensitiveSearch|NSDiacriticInsensitiveSearch) range:NSMakeRange(0, [searchText length])]; if (nameResult == NSO...

iPhone writing binary data

How do you write binary data to a file? I want to write floats to a file, raw, and then read them back as floats. How do you do that? ...

"Failed to upload *.app on Device " Error in iPhone

Hello all, I am getting an error while uploading my app on device. It does installs it but not able to upload it. Also I want to run the instrument tool on device but when I run it shows nothing. Anyone facing the same issues. ...

UITableView: Check rows in edit mode

Hi, I'm new to iPhone SDK 3.0. I've seen table view edit mode where you can check multiple row items and then delete them or move them. The picture here (http://twitpic.com/khmog) illustrates what I mean. I've also seen this in several other apps, such as "Groceries". Could anyone tell me how to do this? Can this be done using 3.0 API...

iPhone CGRectMake memory consuption

On iPhone.. Why would code such as this cause memory leak? after 2 minutes the net bytes have doubled. All I'm doing is moving a ball round the screen with an NSTimer calling the below method. Any ideas? - (void)nextFrame:(NSNotification *)notification { ballInstance.frame = CGRectMake(value, 0, 320, 480); } ...

Availability of older sample code for iPhone 2.2

We've been programming an iPhone application under iPhone OS 3.1, but the client has now decided he wants us to redo the existing codebase to run under 2.2. One of the nice pieces of built-in functionality we used under 3.1 was the UISearchDisplayController functionality for searching UITableViews, but that functionality was not availabl...

UILabel inside custom UITableViewCell not drawing at the correct size

I have a custom table cell which contains a number of UILabels. At runtime, I am adjusting the height of the labels to fit their contents using sizeWithFont:constrainedToSize:lineBreakMode: and repositioning them accordingly. The last label in the cell contains a large amount of text, causing it to wrap, and I'm having a very odd problem...

NSTimeZone: what is the difference between localTimeZone and systemTimeZone?

Under NSTimeZone class, there is both +localTimeZone and +systemTimeZone. I did a test on iphone simulator, both return NSTimeZone object indicating the same timezone. What is the difference? Which one I should use to find out the timezone setting of the iPhone? Thanks My test: NSLog(@"Local Time Zone %@",[[NSTimeZone localTimeZone] na...

Can I use Push Notification for this

My app should post some message to Twitter at the end of each day at the time X. App might not be running at this time X, but it still has to post that message. I don't want to bother user by everyday asking to do this task. Can I use Push Notification to silently (without any alert view popup, sound or anything else) do some task in my...

How to pass arguments when calling function with timer in objective c

-(void)setX:(int)x andY:(int)y andObject:(Sprite*)obj { [obj setPosition:CGPointMake(x,y)]; } Now, I want to call above method, using following timer. [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector() userInfo:nil repeats:NO]; What to set Here? How to Pass arguments? (as per my knowledge - selector spec...