Hiding the Keyboard when losing focus on a UITextView
So I have a UITextView that I'm using to allow the user to submit some text. My problem is, I can't seem to figure out how to allow the user to 'Cancel' by tapping away from the UITextView. ...
So I have a UITextView that I'm using to allow the user to submit some text. My problem is, I can't seem to figure out how to allow the user to 'Cancel' by tapping away from the UITextView. ...
I'm getting this error when building my iPhone application: ld: warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library /Frameworks/UIKit.framework/UIKit, missing required architecture i386 in file It goes the same for all the frameworks in my app. It's very weird since this was not happen...
I would like to gain a better understanding about the delegation. Can somebody please paste a good code sample of delegation and explain how it works? ...
Hello all, When I developed a view based project in XCode, My view works fine. But when I use a window based project and create a view on my own and try adding it as a subview to window, it gives me a white band at the bottom. I never faced this issue before but facing it first time. Anyone having a solution? Tnx in advance. ...
I have implemented this below code. UITableViewCell *cell = [tableView1 cellForRowAtIndexPath:indexPath]; UITableViewCell *cell2 = [tableView1 cellForRowAtIndexPath:oldIndexPath1]; cell.accessoryType = UITableViewCellAccessoryCheckmark; cell2.accessoryType = UITableViewCellAccessoryNone; oldIndexPath1 = indexPath; But, if I select an...
So I'm trying to pop a view controller off the stack when an error occurs, but it seems like it's popping too much off in one go. The navigation bar up the top loses its title and buttons, but the old table view data remains visible. I have no idea what's going on... The basic set up is: Tab View template Navigation controller View ...
What is the best practice to use these two methods for memory management? My current application can easily release its views after a memory warning, because it needs large memory. What do I need to do in these methods? I'm using various nibs in my applications and I'm connecting objects in them to my view controllers without retaining t...
A typical call to performSelectorOnMainThread: looks like this: [target performSelectorOnMainThread:action withObject:foo waitUntilDone:NO]; where "result" is an argument passed to "action". A corresponding action would be: (void)doSomethingWithThing1:(id *)thing1 What is the correct syntax for calling an action that takes > 1 argu...
For instance, I have a movie/item. It opens on Jan 1 2010 and finishes on Jan 10 2010. Do I create an entry for each date that the movie/item occurs, repeating all the data for each date? or do I create two nodes within the movie/item specifying a start date and end date and create an argument to provide all the data as needed? I want t...
Within tableView:cellForRowAtIndexPath: // Make a cell: UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"Default"] autorelease]; // Make a spinner: UIActivityIndicatorView *spin = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; // [spin r...
After a login screen which sends the username/password to a webservice and gets back a response of either true(which is supposed to start the rest of the app) or false(incorrect username/password or unauthorized). The app gives the alert view that you are authenticated but it doesnt load the rest of the view? Can anyone please help me??...
What are the most valuable parts of Computer Science studies for Cocoa developers? Another way I might word this question is: If I’m not going to go to school for Computer Science but want to be a developer working primarily with Cocoa, what are the things I should make sure I learn that I otherwise might miss by being self-taught, an...
Looking at the UIWebView docs, it says that Before releasing an instance of UIWebView for which you have set a delegate, you must first set the UIWebView delegate property to nil before disposing of the UIWebView instance. This can be done, for example, in the dealloc method where you dispose of the UIWebView I'm creating a webvie...
I have a navigation based application which I'm trying to add a unique UIToolbar that will be persistent no matter which is the current view, using this: http://stackoverflow.com/questions/1072080/persistent-uibarbuttonitem-in-uitoolbar The problem is my when I set the frame for the navigationController, the UITableView inside the navi...
Hey all I'm using a MPMoviePlayerController and trying to catch my exception when there is no movie present. movies = [movieDictionary objectForKey:@"movieID"]; NSLog(@"callVideoSetting"); CGRect playfram = CGRectMake(0, 0, 320, 500); stopButton = [UIButton buttonWithType:UIButtonTypeCustom]; [stopButton setFrame:playfram]; [stopButt...
Is it the generated files from the data model that matters more or is the actual xcdatamodel file? And is it possible to change the ownership property from 'retain' to 'copy' for the files that are autogenerated from the xcdatamodel class? ...
What's the proper way to set a default value for a UIView subclass's property? Although I'm not using them yet, if the XIB provides a value I'd like it to override the default. But if the XIB doesn't provide a value, I'd like my default value. In this case, I'm thinking of a CGFloat value specifically. While it could be set to 0.0 this...
Hi, I´m writing a small prgramm in which the User is able to send small Messages (460 Characters). Now I want something like a History in which the user can see all Messages he ever send from this App inlucing the recipient and the Text, both are Strings. Is Core Data "to much" for this? Any other Idea? Thank you twickl ...
Is there to way to fix a view's orientation in a landscape position, regardless of the device's current position? To be more specific, I have a UIWebView in a UINavigationController that should always show its content as if the device were rotated 90 degress counterclockwise. I only want the web view to be restricted to this orientation...
I'm trying to pass ProgressView a float from a calculation made in another class. I've tried passing it by converting it to a NSDecimalNumber but I can't get it back to a float again when it reaches the destination. There's got to be a better way than this. ...