Re: UITableView Cell reordering when cell size is larger than screen size

2013-07-29 Thread Tharindu Madushanka
In case he adds more and more cell becomes very large in the app. Thank you and Kind Regards, Tharindu On Mon, Jul 29, 2013 at 10:09 PM, Fritz Anderson wrote: > On 29 Jul 2013, at 5:35 AM, Tharindu Madushanka > wrote: > > > I have a UITableView with first cell is not re-orderab

UITableView Cell reordering when cell size is larger than screen size

2013-07-29 Thread Tharindu Madushanka
Hi, I have a UITableView with first cell is not re-orderable and all other cells are having re-order handle. Also I have a UIRefreshControl on table view. UITableView cells are at 600 px height. When I click on re-order handle of any cell cell immediately starts moving downwards. It's very hard t

Re: [iPhone] Is it possible to search and detect Bluetooth [MFI] headset or other [MFI] device with SDK

2011-02-02 Thread Tharindu Madushanka
03:22:18, Tharindu Madushanka wrote: > > > Hi, > > > > Thanks. So it would be searched by iPhone it self. > > > > I found another confusing article on web. > > > http://www.objectpartners.com/2010/09/14/communicating-with-external-devices-from-the-iphone-a

Re: [iPhone] Is it possible to search and detect Bluetooth [MFI] headset or other [MFI] device with SDK

2011-02-02 Thread Tharindu Madushanka
ll that is done. > > -- > Rick > > On Feb 2, 2011, at 02:59:54, Tharindu Madushanka wrote: > > > Hi, > > > > Let's say if we build a Hardware Device that is MFI- complient by getting > Apple approval for hardware. Would that mean our iPhone application can &g

Re: [iPhone] Is it possible to search and detect Bluetooth [MFI] headset or other [MFI] device with SDK

2011-02-02 Thread Tharindu Madushanka
s the device show up in the External Accessory framework. > > -- > Rick > > On Feb 2, 2011, at 00:52:45, Tharindu Madushanka wrote: > > > Hi, > > > > Actually, I found this link. > > > > http://developer.apple.com/library/ios/#qa/qa2009/qa1657.html

Re: [iPhone] Is it possible to search and detect Bluetooth [MFI] headset or other [MFI] device with SDK

2011-02-02 Thread Tharindu Madushanka
Mann wrote: > I don't think it is. The app can't really get at the BT radio hardware, and > only sees things that have already been paired via the Settings app. > > -- > Rick > > On Feb 1, 2011, at 20:36:15, Tharindu Madushanka wrote: > > > Hi, > > >

[iPhone] Is it possible to search and detect Bluetooth [MFI] headset or other [MFI] device with SDK

2011-02-01 Thread Tharindu Madushanka
Hi, I would like to know whether its possible from iPhone SDK app to detect and find the Name of a [MFI] Bluetooth device other than an iPhone or iPod touch. If its possible could someone kindly provide few guides to look into it. Thanks and Kind Regards, Tharindu __

Re: [iOS] How to add push animation to view controller without a navigation controller

2010-12-12 Thread Tharindu Madushanka
530, Tharindu Madushanka < > tharindu...@gmail.com> said: > >Hi, > > > >I would like to present my next view controller in a way that pushed in. > But > >my first view controller is not a navigation controller. > > It sounds like you're saying you want t

Re: [iOS] How to add push animation to view controller without a navigation controller

2010-12-10 Thread Tharindu Madushanka
Hi, Thanks. But. This works with two views appearing as pushed. But I would like to have animation for my next view controller. But with two view controllers when other view controller shown, how could we present that with similar animation. // animate up view with fade CATransition *animati

[iOS] How to add push animation to view controller without a navigation controller

2010-12-09 Thread Tharindu Madushanka
Hi, I would like to present my next view controller in a way that pushed in. But my first view controller is not a navigation controller. How could I do this. Is it possible ? Thanks and Kind Regards, Tharindu ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: [iOS] How to know when AVPlayer is ready to play its remote url music

2010-12-03 Thread Tharindu Madushanka
Hi, Got it finally working with Blocks. But I am not sure whether this is the right way.. Is there any better way to determine playing started or not ?? // add time observer // obs (id) defined in class header obs = [[player addPeriodicTimeObserverForInterval:CMTimeMake(1, 3)

[iOS] How to know when AVPlayer is ready to play its remote url music

2010-12-03 Thread Tharindu Madushanka
Hi, I use following code to play a remote url mp3. But I want to know when its ready to play the music to show up some loading indicator until then. AVPlayer *player = [[AVPlayer playerWithURL:[NSURL URLWithString:awdioURL]] retain]; -- How do I update my view when I am using AVPlayer. There's

Re: How to encrypt a String to a SHA-1 Encrypted in iPhone

2010-11-27 Thread Tharindu Madushanka
Hi, It was just I need to add header. But above code didn't work. But following encoded to SHA-1 correctly.. I would like to know whether it encodes right ? or Not ? +(NSString *)stringToSha1:(NSString *)hashkey{ // Using UTF8Encoding const char *s = [hashkey cStringUsingEncoding:NSU

How to encrypt a String to a SHA-1 Encrypted in iPhone

2010-11-27 Thread Tharindu Madushanka
Hi, In order to get this I found following code, but I need to import some frameworks into my code. Could somebody kindly point how can achieve SHA-1 Encrypted string in iPhone. I get few errors compiling since I do not have necessary framework to use this.. :( +(NSString *)stringToSha1:(NSString

[iPhone] Creating an iBooks like Grid View with Section Indexes

2010-11-25 Thread Tharindu Madushanka
Hi, I would like to implement an iBooks like view where there's a grid of images, and in that we can search for icons with section indexes like menu. Could some body kindly provide some ideas on how I could achieve this. Thanks and Kind Regards, Tharindu

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Tharindu Madushanka
m wrote: > > On Fri, 19 Nov 2010 14:49:11 +0530, Tharindu Madushanka < >> tharindu...@gmail.com> said: >> >>> Hi, >>> >>> I would like to make UIWebView content empty while other page is loading. >>> I >>> tried loadin

[iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Tharindu Madushanka
Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also [webview loadHtmlString:@"" baseUrl:nil]; Just before my [webview loadRequest:request]; method call. Still I am having previous html page shown a very little time un

[iPhone] How to make UITextView show spell suggestions on top rather than under the text

2010-11-05 Thread Tharindu Madushanka
Hi, I have an issue my UITextView showing spell suggestions under the text. But I want suggestions to be shown top of my typing text. Because when its showing down suggestions are clipped to another view. Could some one kindly suggest me a way to get rid of this problem. Thank you and Kind Regar

[iPhone] Floating Point numbers with .f and without .f Suffix

2010-10-12 Thread Tharindu Madushanka
people use without .f. For example, CGRectMake(0,0,320,460) instead of CGRectMake(0.0f,0.0f,320.0f,460.0f) Is there any minor performance of using either approach. Could someone kindly clarify on this. Thanks and Kind Regards, Tharindu Madushanka

[iPhone] Changing iPhone Application Language Programatically.

2010-10-04 Thread Tharindu Madushanka
Hi, I would like to know whether its possible to change to a language other than provided list of languages in iPhone Settings. By default using localized .lproj folders & .strings files we could make applicaton localized into selected language. For example, Languages like Sinhala are not in thos

Re: [iPhone] Breaking content of NSMutable array into two arrays.

2010-09-02 Thread Tharindu Madushanka
Hi, Yes it's about a class. Thanks. :) Tharindu. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscrib

[iPhone] Breaking content of NSMutable array into two arrays.

2010-09-01 Thread Tharindu Madushanka
*)filteredArrayUsingPredicate:(NSPredicate *)*predicate Could I use this method for my purpose, could someone give me an example usage of predicate or some other mean to do my task *Thank you and Kind Regards, Tharindu Madushanka * * ___ Cocoa-dev mailing list (Cocoa-dev

Re: [iPhone] How to change Default.png Image Dynamically

2010-08-21 Thread Tharindu Madushanka
Hi, ah. ok. Yep. I realized that in iOS4. Then it's an OS feature.. Thanks a lot. I was confused with that :) Tharindu ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: [iPhone] How to change Default.png Image Dynamically

2010-08-21 Thread Tharindu Madushanka
robably > depends on your use case. > > On Aug 20, 2010, at 5:15 AM, Tharindu Madushanka wrote: > > > Is it possible to save a screen shot of last running application screen > as > > the app loading screen next time.. > > > > I see may be Maps iPhone applicat

[iPhone] How to change Default.png Image Dynamically

2010-08-20 Thread Tharindu Madushanka
, Tharindu Madushanka tharindufit.wordpress.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: [iPhone] Terminating iPhone App programatically

2010-07-05 Thread Tharindu Madushanka
Hi, Ah Ok. I got the point. Thanks :) So we should not look to exit the app using code. Tharindu. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coc

Re: [iPhone] Terminating iPhone App programatically

2010-07-05 Thread Tharindu Madushanka
Hi, But is it okay to quit app programatically after showing an alert to user about application exit situation ? After reading the link I get the idea that we could use this feature sometimes. And also could I use [[UIApplication sharedApplication] terminateWithSuccess] ? Tharindu.

[iPhone] Terminating iPhone App programatically

2010-07-05 Thread Tharindu Madushanka
Hi, If I use following code to exit my application in some certain conditions, depending on user inputs, will Apple reject the app ? [[UIApplication sharedApplication] terminateWithSuccess]; If so are there any other means to successfully terminate the app programatically ? Thanks and Kind Rega

[iPhone] GameKit to implement Voice Chat over Internet

2010-06-24 Thread Tharindu Madushanka
Hi, I would like to clarify about this thing. Is it possible to implement Voice Chat between two iPhones or iPods that are not in the same network using GameKit framework ? If possible, could I find some info about how it could be done any sample code or articles on Implementing Voice Chat over

[iPhone] How to scale a UITextView Properly with typing text shown

2010-05-20 Thread Tharindu Madushanka
I use following code in UITextView Delegate method to resize the text view. I want it to look like iPhone Messages. Still this doesn't show the already typed text on top. I mean it doesn't scroll to the correct typing position in text view. Could anyone kindly correct this code ? To scroll the tex

[iPhone] How to add a text field like that scales with return key like in iPhone Messages

2010-05-18 Thread Tharindu Madushanka
Hi, I want to add a text field that will scale down when user presses the Return key. mean time the background view will scale up same as how Messages iPhone application do it. I have currently only a single line text field, on which when i type more the font size gets decreased. Could someone gi

Re: [iPhone] How to create a unique string

2010-05-13 Thread Tharindu Madushanka
Hi, Thanks a lot. [[NSProcessInfo processInfo] globallyUniqueString] seems to be the easiest one. cool. Thank you very much, Tharindu > > It might be simpler to just use [[NSProcessInfo processInfo] > globallyUniqueString] > > -Jonathan > ___ Cocoa-

[iPhone] How to create a unique string

2010-05-13 Thread Tharindu Madushanka
Hi, I want to generate a unique string every time i push a button. Can I create some string like that using a time stamp NSDate object may be. ex. e3df44646ngfd5454nrteter Its really useful to know about a small code segment or way to create a unique string in iPhone. Thank you and Kind Regards

Re: [iPhone] How to scroll to UITableView footer view

2010-05-01 Thread Tharindu Madushanka
imated:YES]; Tharindu Madushanka ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Su

[iPhone] How to scroll to UITableView footer view

2010-05-01 Thread Tharindu Madushanka
Hi, How can I scroll to a UITableView footer all the time, while adding cells to table view content. Is there some way similar to scrollToRowAtIndexPath: , to scroll directly into my bottom footer view after adding new cells ? Thank you and Kind Regards, Tharindu Madushanak

How to resume an XCode Download

2010-02-10 Thread Tharindu Madushanka
download due to session expire.. I have tried automatic page refresh also using pagereboot.com.. no success .. :( Thank you and KInd Regards, Tharindu Madushanka ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

[iPhone] Implementing APN , push notification not received to iphone

2010-02-01 Thread Tharindu Madushanka
andshake(): 0 2010-02-01 20:10:51.088 PushMeBaby[2507:a0f] SSLWrite(): 0 144 Could anyone provide me some sample server code.. or guess why I am not getting push notification messages in phone.. Thank you and Kind Regards, Tharindu Madushanka ___ C

[iPhone] Implementing VOIP for iPhone App

2010-01-24 Thread Tharindu Madushanka
work on voice recognition - sphinx - Java. And just like to know about possibility of implementing VOIP for iPhone.. or some initial steps to look into this. Thank you and Kind Regards, Tharindu Madushanka ___ Cocoa-dev mailing list (Cocoa-dev

Re: [iPhone] Convert date string to a NSDate object

2010-01-08 Thread Tharindu Madushanka
quot;2010-01-08T08:09:20Z"]; Thank you, Tharindu On Fri, Jan 8, 2010 at 1:58 PM, Tharindu Madushanka wrote: > Hi, > > I am having a time stamp string like 2010-01-08T08:09:20Z > > I would like to know how I could convert this to a represented NSDate > object.. Is it possib

[iPhone] Convert date string to a NSDate object

2010-01-08 Thread Tharindu Madushanka
Hi, I am having a time stamp string like 2010-01-08T08:09:20Z I would like to know how I could convert this to a represented NSDate object.. Is it possible to do this without separating the string into several parts.. Thank you and Kind Regards, tharindufit.wordpress.com ___

Re: [iPhone] how do I stop a running thread

2010-01-02 Thread Tharindu Madushanka
Thanks :) Tharindu Madushanka tharindufit.wordpress.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help

[iPhone] how do I stop a running thread

2010-01-02 Thread Tharindu Madushanka
Hi, I am creating a thread with method detachNewThreadSelector: How could I stop the thread while it is running ? Thank you, Tharindu Madushanka tharindufit.wordpress.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

[iPhone] Track for iPhone App Re-Install

2009-12-11 Thread Tharindu Madushanka
Hi, Is there a way to track if an iPhone application is re-installed locally with the SDK.. without having a server ? Kind Regards, Tharindu Madushanka tharindufit.wordpress.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Defining and using constants in Objective C

2009-11-29 Thread Tharindu Madushanka
Hi When defining constants can I keep all important constants in one file and use it all over the application, rather defining same constant in several .m files. This might be a basic question, but just could not figure out how to do this. Thank you Tharindu Madushanka

[iPhone] creating a cropped image thumbnail like in Photos

2009-11-22 Thread Tharindu Madushanka
Hi I was trying to create a square thumbnail from a picked image from UIImagePickerController. To create thumbnail I first crop the image a square and then resizing it to get a thumbnail. Following link having my code segment doing so http://cl1p.net/ip/ But still it does not seem like nice squa

Re: [iPhone] UIButton adding glow effect for a custom button with image

2009-11-22 Thread Tharindu Madushanka
It seems like I did a mistake in Interface Builder setting my image as button image, not as background. Because of that showsTouchWhenHighlighted effect must not have worked. Now its adding some nice effect without any hard work Sorry :( ___ Cocoa-dev ma

[iPhone] UIButton adding glow effect for a custom button with image

2009-11-21 Thread Tharindu Madushanka
Hi I have a custom button with image as background. So when its is selected I have to add some effect on top of it to indicate that its selected. So one way of doing that could be to add another image for that perticular button state. I have tried with showsTouchWhenHighlighted property and adjus

Re: Saving data as NSData using NSUserDefaults

2009-11-21 Thread Tharindu Madushanka
yep got the idea now, it seems setObject: is the one to use for all the object types. But there are multiple retrieve methods to make work easier. Thanks :) On Sat, Nov 21, 2009 at 8:10 PM, Fritz Anderson wrote: > On 21 Nov 2009, at 8:32 AM, Tharindu Madushanka wrote: > > > I saw

Re: How to change UITableView cell style dynamically

2009-11-21 Thread Tharindu Madushanka
reuse identifiers. Then when you dequeue, you ask for an available cell of > the apropeiate type. > > Luke > > Sent from my iPhone. > > > On Nov 21, 2009, at 1:55 AM, Tharindu Madushanka > wrote: > > Hi >> >> Removing reuse identifier solved the problem s

Saving data as NSData using NSUserDefaults

2009-11-21 Thread Tharindu Madushanka
Hi, I saw a method to retreive data as NSData using NSUserDefaults class, but it seems like there is no method to save NSData. no method like setData: forKey: Is it possible to save somethings as for example image as NSData in NSUserDefaults Thank you, Tharindu __

Re: How to change UITableView cell style dynamically

2009-11-21 Thread Tharindu Madushanka
Hi Removing reuse identifier solved the problem so now I am creating a cell like below. It worked. UITableViewCellStyle style; if(profile.name.length > 0) { style = UITableViewCellStyleSubview; } else { style = UITableViewCellStyleDefault; } UITableViewCell *cell = [[[UITableViewCell all

How to change UITableView cell style dynamically

2009-11-21 Thread Tharindu Madushanka
Hi I am trying to create a table with a single cell like in Contacts Application top one. What I want is change the cell style time to time. But changing the style does not work even I call [tableview reloadData] it seems like cell style is not changing I want to switch between Default cell style

[iPhone] UITableView section header title color

2009-11-18 Thread Tharindu Madushanka
Hi Could we customize the UITableView section header title color programatically other than default one in a grouped table view ? Thank you Tharindu ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
ah Thanks :) self.view.window.backgroundColor worked but I did not try superview thing. Thank you -Tharindu ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
This is the method I use to switch views. And my views are created with Interface Builder - (IBAction)switchViews { self.view.backgroundColor = [UIColor blackColor]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.25]; [UIView setAnimationCurve: UIAnimationC

Re: [iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
before animation I have set the background color but it did not work. Still it was white even I set it to black. it seems like color is not coming from self.view ?? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

[iPhone] customizing UIView animation run background color

2009-11-17 Thread Tharindu Madushanka
Hi I am using following method to flip between UIViews that have imageviews on it as background. When I animate the views. I could see white background color at animating time. Can I change this color. What I currently do is like this. [UIView beginAnimations:nil context:nil]; [UIView setAnimatio

[iPhone] iPhone Screen with Add Photo and UITableView

2009-11-15 Thread Tharindu Madushanka
Hi I am trying to implement a screen in that it should have a table view, with add photo button and to right a table view cell. Could I do this with a single table view ? Can anyone point some way to do it. Like in contacts app Thank you, Tharindu ___

Re: [iPhone] Implement a screen like contacts screen

2009-11-11 Thread Tharindu Madushanka
Actually I want a similar screen to a Profile page. it will be the same but not exactly some fields like sex, interests should be there. But with the same look like a contacts screen. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

[iPhone] Implement a screen like contacts screen

2009-11-11 Thread Tharindu Madushanka
be a table view cell. I am really glad to get some idea about it. Thanks Tharindu Madushanka ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

[iPhone] EditableDetailView sample code

2009-11-09 Thread Tharindu Madushanka
Hi I am finding it difficult to find previous sampe codes in apple site. How can I find sample code for Editable Detail View Kind Regards, Tharindu Madushanka ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-08 Thread Tharindu Madushanka
ght:>could be used in my problem. But the documentation for this seems to be little confusing for me could anyone just tell what is this leftCapWidth and topCapHeight in simple terms. Thanks Tharindu Madushanka On Mon, Nov 9, 2009 at 12:36 AM, Luke Hiesterman

Re: [iPhone] Custom UIView like in iPhone Messages App

2009-11-07 Thread Tharindu Madushanka
images to do this ? I mean say for a small message different background image and for a very long message another. Or what could be the best size of a background balloon image to get ? And I could have done something like what you proposed for this :( Tharindu Madushanka tharindufit.wordpress.com

[iPhone] Custom UIView like in iPhone Messages App

2009-11-07 Thread Tharindu Madushanka
image is scaled ? Could anyone suggest some solution for this. Thank you Tharindu Madushanka tharindufit.wordpress.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Using dealloc method in a class that have only class methods

2009-10-21 Thread Tharindu Madushanka
Hi I have created a class with only class methods in it and a single static instance variable allocated only one with a class method. Do I need to add a -(void) dealloc: method to this class. Could someone kindly explain. Thank you, Tharindu Madushanka tharindufit.wordpress.com

Re: [iPhone] Encrypting data of an iPhone Application / Converting J2ME App functionality

2009-07-16 Thread Tharindu Madushanka
NSData dataWithBytes:(const void *)bufferPtr length:(NSUInteger)movedBytes]; result = [[NSString alloc] initWithData:myData encoding:NSASCIIStringEncoding]; return result; } Please kindly have a look at how should I correct this. Thank you, Tharindu Madushanka _

[iPhone] Encrypting data of an iPhone Application / Converting J2ME App functionality

2009-07-15 Thread Tharindu Madushanka
Hi, I am still learning iPhone application development and I want to convert a J2ME trading client application to an iPhone SDK application. I have already developed an iPhone application that did not have any encryption published at Apple AppStore. I have good knowledge with J2ME so I could under

Re: Float value change

2009-04-28 Thread Tharindu Madushanka
Hi, I am trying to store values in a SQLite database and retrieve them, they are currency values, so what is the alternative or solution I will have to look for, I am confused with this. Please is there any work around ?? Regards, -Tharindu ___ Cocoa-dev

Float value change

2009-04-28 Thread Tharindu Madushanka
Hi, I have float values in my iPhone program, when I type in a textfield and print it it shows a little different value than what I have typed, I used printf to see the results. I can't understand why its happening. How can I resolve this. For example textfield.floatValue actual value typed - 44.45

Retrieve Default Currency Type in Mac, iPhone

2009-02-16 Thread Tharindu Madushanka
Hi, I want to get the currency type of iPhone default selected language. If I add an NSNumberFormatter and format a number I will get a string with the currency type. But I cannot sub string this and get the currency type since it might vary the character size. When international is selected as Uni

Re: Format float value to display with commas

2009-01-22 Thread Tharindu Madushanka
th, > > Rob > > > > > On Jan 21, 2009, at 12:59 PM, Tharindu Madushanka wrote: > > Hi >> I have float variables that stores my currency values, I want to display >> these values in a string with commas at each 3 digits, can I do it with >> Objective

Format float value to display with commas

2009-01-21 Thread Tharindu Madushanka
Hi I have float variables that stores my currency values, I want to display these values in a string with commas at each 3 digits, can I do it with Objective C. I am new to the language. Please help me to solve this. For example, float ft = 12333.8905; NSString *strFloat = [NSString stringWithForma

How to get the current view controller in iPhone application

2009-01-06 Thread Tharindu Madushanka
Hi Can I get the class type of the current view controller running in the application, I have Tab Controller and Navigation Controller in my application, at some time I need to get the current view controller using code, can any body please tell me a method or code segment to do this. isKindOfClass

Graphical UILabels in iPhone

2009-01-05 Thread Tharindu Madushanka
Hai I am trying to develop chat application for iPhone, I like to add labels with text like iChat on Mac, In iPhone can I do it using UILabels or UITextFields. How can I have a look like that. Is it possible to do with iPhone SDK, I am new to iPhone SDK and also never done Mac OS programming. So pl

Create UILabel to fit into text size

2008-12-29 Thread Tharindu Madushanka
Hi I am new to iPhone application development and please help me on this. I need to add the contents in a text field to a UILabel. But I can't guess how long the string in the text field be. There fore, can I make a UILabel from the text ( I mean to fit the text to UILabel size). I have searched bu