objective-c

play sound clips in iphone

I'm new to iphone development. i want to write an app that has 3 buttons. touching each will trigger a sound. 1.wav 2.wav 3.wav Can someone give me some hints and guide me to the right path? ...

upload a file with progress bar in iphone

how can I upload a file and display the completion on a progress bar? ...

Cursor location in a uitextfield

im using customkeyboard in my controller. but how to get the cursor location in the uitextfiled. my requirement is to enter a charecter in a desired location of textfield. is it possible? ...

iPhone settings screen

Hi Friends, I want to design a screen like settings screen. Like in grouped uitableview I want to place the controls. Can any one please provide me any application sample or code ? Thanks in advance. Regards, Malleswar ...

How can I conditionally color files and folders in the OS X Finder?

I want to color badge files and folders based on the some condition in finder, what is the approach to achieve this in Mac OS X 10.6 I have checked this question: This only talk about the context menu in finder http://stackoverflow.com/questions/1651075/finder-plugin-in-snow-leopard I have even checked: http://scplugin.tigris.org/ even...

UIWebView and JavaScript

I am finding a strange behaviour of UIWebView. In the delegate - (void)webViewDidFinishLoad:(UIWebView *)webView{ [self changeFont]; //[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(changeFont) userInfo:nil repeats:NO]; } In changeFont, I am calling the javaScript to change font of web page...

Performselector not call in NSThread

Hi all, I have a problem that i want to call a function when one of my functions that is running into a seperate thread comes to an end: [NSThread detachNewThreadSelector:@selector(fetchFeaturedFreeApps) toTarget:self withObject:nil]; here is my fetchFeaturedFreeApps function -(void)fetchFeaturedFreeApps { ////all my code [s...

Start developing for macosx

hello, I would like to start developing for macosx. I need to create a small native application to help me do some stuff. I never developed in Objective-C, have no idea about cocoa, Xcode, NIB and similar stuff. I don't want to learn by slapping examples together though. This would probably make things done, but I would not learn anyth...

Nice shadow effect in text (UISegmentedControl)

Hi, I would like to bring some color to the texts of my UISegmentedControl. So, I've searched a bit about this topic, but it seems to be not possible out-of-the-box. But I found this nice blog post (link text), how to build an image out of a custom text and then assign it to the segemented control. Works fine, but the text in these cre...

tab bar problem

I uses a tab bar in our iphone app but when i load the xib with tab bar then it(all view) slides little bellow. ...

how to pinch image in iphone

Hi I am new i want to develop a application that we zoom in and zoom out image but i am not understand how to do this. any one help me with code and other ...

How set accessory type when tabel view is enbled to editing?

Hi Guys, I am using the UITableView properties to edit it. theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES; It is working fine, the row is selected and I am getting into the next controller but I need to display the the accessoryType in the row. I am using below line for that but even though it is not worki...

How can I get touch co-ordinates in cocos2d?

Hi, I am a newbee in iPhone game development. What I want is that wherever user touches on iPhone screen, where I will display a pic at that place. Can anyone help me how to get co-ordinates of the area everytime when user touches the screen? Regards, Nouman ...

If-Statement checking vor a value between two others

Is there a kind of "between" check I can use in an if-statement that verifies whether a given float value is between two others? Can I write something like if (floatConstA <= checkFloatValue < foatConstB) { or must I do this using AND/OR constructs? ...

Implementing touch-based rotation in cocoa touch

I am wondering what is the best way to implement rotation-based dragging movements in my iPhone application. I have a UIView that I wish to rotate around its centre, when the users finger is touch the view and they move it. Think of it like a dial that needs to be adjusted with the finger. The basic question comes down to: 1) Should ...

Best practices and Design Patterns for iPhone forms?

Part of the app I'm making requires the user to fill in a multi-page form, the contents of which will be saved locally (perhaps using Core Data). Are there any best practices for this? This form just includes text fields. I guess the options are UITextFields, or perhaps a UIWebView, with the fields as part of an html form? Are there are ...

Sorting an array of Objective-c objects

So I have a custom class Foo that has a number of members: @interface Foo : NSObject { NSString *title; BOOL taken; NSDate *dateCreated; } And in another class I have an NSMutableArray containing a list of these objects. I would very much like to sort this array based on the dateCreated property; I understand I could...

how to adjust tab bar button in my app for iPhone

Hi I am facing a problem while executing my app. all the tab buttons are not clearly visible means that they are shifted below with there current position. so give me some code to adjust the position of tab bar buttons Thanks Ritesh ...

View Loading Problem

Hello, I am using some xib without tab bar and some with tab bar. In starting i load the xib without tab bar-navigation bar then flow are working.But if i load a xib with tab bar-navigation bar then our all view slide bellow and half tab bar are not showing.Please anybody help me as soon as possible. Pleaseeee!!!!!! ...

iPhone: No events after rotation

Hi, for rotation of my app I use the same view and just rearrange some controls resp. define the appropriate autosize attributes. So, for example, I have a segmented control which goes from the left to the right over the complete screen. When rotating it resizes correct, but I get no events from the segments on the right side (I guess, ...