iphone

Can't display selected text with different colors in UITextView, what should I do?

I want to display texts in UITextView with different colors and underline some of them (to show they are erroneous - commonly done in spellchecker) but that's not possible with the current version of UIKit. What other options should I pursue? I am thinking of subclassing UIScrollView (as I am dealing with a lot of texts) and blit the t...

iPhone dev: adding an overlapping label to the image

Hi, I'm trying to figure out a best way to implement the picture-editing capability shown in the native address book app on iPhone. On the built-in address book, this is how the picture looks like before editing: And after clicking edit, notice how "Edit" overlay is added and the image becomes clickable: What would be the best way...

iPhone: How to detect if iTunes is playing?

I noticed that some apps programmatically mute itunes (if its running) at launching. How is this achieved? I have a game with background music and would like to either stop itunes or get at least a message that itunes is playing so that I can stop the game's background music. thx, marc. ...

Is there a way to remove the separator line from a UITableView?

Hi, I'm looking for a way to completely remove the separator line in a UITableView when in the plain mode. This is done automatically in grouped, but this also changes the dimensions of the table in a way that is hard to measure. I have set the seperator line color to colorClear. But this does not completely solve the problem. As I am t...

how to flip view with an application with tabbarcontroller and navigation controller

i have a application like this from the first view when i click on a cell i loaded a new view using pushviewcontroller method now i want to flip that view with another view and vice versa. also when i click on the cell i want to hide the tab bar.but unable to do this. here is the link from where i created my views. http://www.iphonemusin...

Can I hook into UISearchBar's Clear Button?

Hey guys, I've got a UISearchBar in my interface and I want to customise the behaviour of the the small clear button that appears in the search bar after some text has been entered (it's a small grey circle with a cross in it, appears on the right side of the search field). Basically, I want it to not only clear the text of the search ...

getting sqlite3 database from a server and copy it into iphone's documents directory?

I need to extract data entries from a server-based sqlite database into different objects in my project. I have only been able to find tutorials and write-ups on how to feed data to a Table View through a local database. Say the database has 5 rows, each with 10 columns. How do I take the text from e.g. column 3, row 5 and make it show...

How to stop loading the UIWebView

I created number of UIWebviews and add it to my view. And gave load request. I want to stop loading the uiwebview with tag=10. How can this implement? ...

scroll view touch detection issue

Hi, I am having a problem in touchesMoved method in a view which is added on UIScroller view due to project specification. I added some number of labels which contains some text on each label and on swipping my finger on labels i have to play a specific file for that word. If i just add the view on the window directly i got all touch ...

Why is SQLite not incrementing my primary key?

Here is my table, sqlStmt = [ [ NSString stringWithFormat:@"Create Table %@ (recordNo INTEGER PRIMARY KEY AUTOINCREMENT, noOfPlayer INTEGER, smallBlindAmt INTEGER, bigBlindAmt INTEGER , startingChips INTEGER, roundTimer INTEGER) " , SETTINGS_TABLE ] StringUsingEncoding:NSUTF8StringEncoding ] ; insert query, sqlStmt = [ [ NSString ...

Remove character from NSString in iPhone programming?

NSString *myString = @"A B C D E F G"; I want to remove the spaces, and get a string out like "ABCDEFG". Please help me... Thanks and regards ...

iphone sim number

how to get the phone number in iPhone using iPhone programming... i mean code ...

How to make a UIView subview NOT scroll.

I have a subview over my UITable that is used as a "busy view". It holds an activity indicator and labels. I call it when the program is going to download a photo that is indexed in the cell. All that works fine but the problem is that when I'm scrolling down the UITable and then click on a cell and the "busy view" gets added it will sho...

Core Data NSPredicate for relationships.

My object graph is simple. I've a feedentry object that stores info about RSS feeds and a relationship called Tag that links to "TagValues" object. Both the relation (to and inverse) are to-many. i.e, a feed can have multiple tags and a tag can be associated to multiple feeds. I referred to http://stackoverflow.com/questions/844162/how...

Objective-C vs C++

At the risk of this turning info flame bait, my curiosity has gotten the better of me yet again and I have to ask what I feel to be a very compelling question. Is there any hard data comparing Objective-C to C++, specifically on the iPhone but maybe just on the Mac desktop, for performance of various similar language aspects? I am very...

UIScrollView - Adding / Removing labels

I am trying to add/remove UILabels to a ScrollView. The adding takes place just fine, but I can not seem to get the labels removed, before adding new ones. Can anyone shed some light on this situation? -(void)setMessage:(MessageData *)m{ //Attempting to remove any previous labels iPhone_PNPAppDelegate *mainDelegate = (iPhone_P...

Iphone SDK - Animating Subview

I have a View that has a UIWebView, and an OptionsPane (Custom UIViewController with Custom view). I want when the view is shown, for the options pane (located on the top of the main view) to FLIP into place. I am using the code, and I am getting a strange result. The FIRST time the view is shown, the options pane seems to already be v...

What is the best place to learn Iphone development with Xcode and objective-C basics?

When I say best place, I mean a physical courses, seminars, workshops, etc... It could be all around the world Thanks! ...

iPhone Rotation of UINavigationController view as Subview

I'm having a problem getting a UINavigationController to lay its table out properly after autorotation, when the UITableview is a subview. What happens, is that the navigation bar gets shifted down about 20px, and the table becomes either too short and too wide in landscape, or too narrow in portrait. Anyone have any suggestions? Thi...

Query available storage on iphone

Is it possible to determine how much free storage is left on the iphone using the iphone sdk? I'd like to adapt the cache size depending on how much space is actually left. ...