Hi,
I've created a UIView (of type ColumnView) in Interface Builder.
Is it possible to add that UIView multiple times to my window?
I'm trying to create a UIView template that I can add to my window in a couple of places but can't figure out how to do that.
I tried referencing the outlet of that UIView to 2 different IBOutlets but w...
I am new to objective-c programming. I come from a C# background. I am having problems with the following code I am writing for a proof of concept for an iPhone App:
I am getting a number of compile errors but I think they are all due to the first error (could be wrong) - error: expected identifier before '*' token (@synthesize *lists...
I'm storing large unicode characters (0x10000+) as long types which eventually need to be converted to NSStrings. Smaller unicode characters can be created as a unichar, and an NSString can be created using
[NSString stringWithCharacters:(const unichar *)characters length:(NSUInteger)length]
So, I imagine the best way to get an NSStri...
I'd like to have a reusable logging method or function that spits out the name of the method it's called from. Example:
- (void)exampleMethod {
CustomLog(); //Outputs "exampleMethod"
}
...
Hello,
I'm a little new to objective-C but have run across a problem that I can't solve, mostly because I'm not sure I am implementing the solution correctly.
I am trying to connect using a Synchronous Connection to a https site with a self-signed certificate. I am getting the
Error Domain=NSURLErrorDomain Code=-1202 "untrusted serve...
I'm having what appears to be a simple problem. I declare a navigation controller but the navigation bar that comes up is not displayed at the top of the page.
http://sphotos.ak.fbcdn.net/hphotos-ak-snc3/hs410.snc3/24784_889732028002_28110599_54506042_4580563_n.jpg
I declare the navigation controller like so...
UINavigationController...
How do I make a delegate? I have a class called CustomSign. The class has a view associated with it. The view has 2 elements. A textfield and a uilabel. I want to copy the textfields data to the uilabel when you click the done button.
Here's my code in the CustomSign.m
I don't know how to make it a delegate.
-(void)textFieldDidEndEditi...
Below is the @interface for an MREntitiesConverter object I use to strip all html tags from a string using an NSXMLParser.
@interface MREntitiesConverter : NSObject {
NSMutableString* resultString;
NSString* xmlStr;
NSData *data;
NSXMLParser* xmlParser;
}
@property (nonatomic, retain) NSMutableString* resultString;
- (NS...
A have a view controller, and it creates a "downloader" object, which has a reference to the view controller (as a delegate). The downloader calls back the view controller if it successfully downloads the item. This works fine as long as you stay on the view, but if you navigate away before the download is complete I get EXC_BAD_ACCESS. ...
I have made an applications which contains a main canvas view. In which i add some subview (NSView) of different kind. Means say subView1 is a container for PDFView, subView 2 is a container for a WebView and subView 3 is a container for QTMovieView.
I can select and drag these views on main canvas view. The strange thing that happens i...
One of the things that block objects, introduced in Snow Leopard, are good for is situations that would previously have been handled with callbacks. The syntax is much cleaner for passing context around. However, I haven't seen any information on the performance implications of using blocks in this manner. What, if any, performance pi...
I have an array of dictionaries. I would like to extract an array with all the elements of 1 key of the dictionaries in the original array? Could this be done without enumeration?
...
- (IBAction)EnterButtonPressed:(id)sender {
Sqlite *sqlite = [[Sqlite alloc] init];
NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"test.sqlit...
I have completed the code to play song using url connection..
now how can i save it in iphone.
thnx
...
IN my application i use MFMailComposeViewController class to send mail and i know in the case of sending mail through ipod is sucessfully when one account is already open in that but in my application I want to a message which alert the application to open ur account.......
...
The idea it's very easy, i have an http download class, this class must support the http authentication but it's basically a background thread so i would like to avoid to prompt directly to the screen, i would like to use a delegate method to require from outside of the class, like a viewController.
But i don't know if is possible or if...
hello everyone
I hope to load an ViewController and do something then unload (viewDidUnload) it from memory.
if (self.vViewController5.view.superview==nil)
{
ViewController5 *blueController =
[[ViewController5 alloc] initWithNibName:@"View5" bundle:nil];
self.vViewController5 = blueController;
[self.vViewController5 setDe...
Hi guys,
in my app i got a TTLauncher Object with some TTLauncherItems in it.
Now i want to add some Items dynamically inside my App by pressing a button.
Is there a simple way to do that or do i have to create my own methods?
In the original facebook application there is already something like that implemented. (You can add your Frien...
Hi there,
Compiling my application works—everything is fine. The only errors I get are by deprecated functions (setText).
The only problem is now, is that when I tap on a cell in my table, the app crashes, even though it's meant to push to the next view in the stack.
Any solutions are appreciated, if you need any code, just ask.
Also...
How can I set the background color of a particular button in iPhone?
I used:
btnName1 = [ColorfulButton buttonWithType:UIButtonTypeRoundedRect];
btnName1.frame=CGRectMake(45,146,220,40);
[btnName1 setTitle:@"Continue" forState:UIControlStateNormal];
[btnName1 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[btnName...