Cocoa Touch- UITextView Colors
Is there an easy way to change a single characters color in a textview? Thanks! ...
Is there an easy way to change a single characters color in a textview? Thanks! ...
Possible Duplicates: Objective-C : BOOL vs bool Is there any difference between BOOL and Boolean in Objective-C? I noticed from the autocomplete in XCode that there is a bool and a BOOL in Objective-C. Are these different? Why are there two different kinds of bool? Are they interchangeable? ...
I noticed that Cocoa/Objective-C classes inherit and conform from other classes. I understand what inheritance is, but not conformance. What's the difference? Also, is a class like UIView a Cocoa class or an Objective-C class? ...
Hello, In a UIWebView of my iPad application, I display a HTML file with a Cambria font (the font type is set in a css file). This font is not supposed to work on iPad but the font that appeared seemed nice to me. Now I'm trying to use the same font in the rest of my application and I discovered that Cambria font is not available on iP...
I am creating a custom CCSprite class to display a custom image and set its own position as well as handle other drawing tasks. Currently I have no other code running in the custom class but the initializer, which should set the image file and the position of the sprite. Here is my - (id)init method - (id)init { if (!(self = [sup...
When I try to build my project I get the following error. ld: duplicate symbol .objc_class_name_GLFunView in /Users/gin/Documents/development/GLFun/build/GLFun.build/Debug-iphonesimulator/GLFun.build/Objects-normal/i386/GLFunView-7A51E8797CBB3D72.o and /Users/gin/Documents/development/GLFun/build/GLFun.build/Debug-iphonesimul...
How would I do this, all I want to do is rotate a UIImageView depending on the orientation of the iPhone. ...
How can I tell what keys the user pressed into a textView? And before you ask since it sounds similar to a keylogger, I'm making a typing app and I need to know if what they entered of the correct matching key to what they were prompted. Thanks! ...
Hello everybody. I am using DTGridView with a subclass of DTGridViewCell with a UILabel and UITextField to do an in-place cell editing. That idea worked for me in UITableView like this: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { EditableDetailCell *cell = (EditableDetailCell *)...
Is it physically possible to have the iphone camera detect motion? If so, How do you do it? Thanks! ...
I have two views and I want to present the second view from a method in the first view. My code works in an IBAction method, but not from one returning void. Is this a known issue, if so is there a workaround? My code is as follows (I already declared "scores" and -(void)win in FirstViewController.h): // In FirstViewController.m -...
How can I change this code to add a UIImage and then move it using the accelerometer? Then how do you detect if it collides with another image? Thanks! ...
I'm following a tutorial from chapter 12 of the book "Beginning iPhone 3 Development." When I try to build the project I get an error. The book came with the project files, so I went through every file in my Classes directory and copied and pasted the code from the example project so that they are identical. This has solved my build erro...
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete Today's Data" otherButtonTitles:@"Delete Week's Data",@"Delete Month's Data",nil]; Is there an easy to have more than 1 red "destructive button" in an i...
The following will compile but if run it will crash. -(void) testFunc : (NSString *)s{ NSLog(@"%@", s); } What's wrong with this code? I call the function like this: NSString *msg = @"This is a message"; [self performSelector:@selector(testFunc) withObject:msg afterDelay:0]; [msg release]; ...
Let's say I have a method called foo. What's the difference between: [self foo]; and [self performSelector:@selector(foo)]; Are they the same? The first one seems so much easier, so why would you ever want to use the second one? ...
I am new to iOS developement, and i am trying to understand the whole cycle of iOS application developement, and i feel there's a missing part i just don't get it.. if the MainWindow.xib that is generated automatically by Xcode has a view that loads another xib/nib view inside it, then why we use it ? ...
Hello all. My question is a design issue and it has been driving crazy over the last couple of days. I am new to cocoa touch development. I have an application that has a UINavigarion controller and a 3 views. I need to keep communicate with a WCF service and store the data on the app side. How do I create my Model (MVC) in a way tha...
I've been using that kind of methods on and off but never really understood how they behaved. Every time I try to use them, I find myself poking in the dark as I try different aspect and it never seem to do what I expect it to. For the sake of argument, I'm trying to convert the frame I get from UIKeyboard's notification. In landscape...
hi, if i want to check whether a textfield or string is empty i compare it with NULL or nil? thks ...