| Mac Cocoa |
| Author |
Message |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 887 Location: Europe
|
Posted: Mon May 11, 2009 3:42 pm Post subject: Modality & Alerts |
|
|
Under The Bridge - full screen presentModalViewController
"Today we have a little iPhone user interface programming problem to pre-
sent to you with its not so self evident solution, courtesy of the kind assista-
nce of one Bryan Henry on the iphonesdk list." |
|
| Back to top |
|
 |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 887 Location: Europe
|
Posted: Mon May 11, 2009 3:44 pm Post subject: |
|
|
Bill Dudney: Presenting Modal Views Bug
"When you present a modal view controller via the -presentModalViewCont-
roller:animated: method the viewWillAppear: method gets called on the mo-
dal view controller before the view is actually loaded." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Tue May 12, 2009 10:05 am Post subject: |
|
|
SO - Is parentViewController always a Navigation controller?
"The update to page 1 wasn't happening, and it took me a long time to reali-
ze that the "doSomethingPleaseWithSomeData" message was not being sent
to Page1ViewController, but the Navigation Controller."
ADC - parentViewController somewhat misleading:
"The underlying view controller if this view controller is a modal view cont-
roller; otherwise, the enclosing navigation or tab bar controller." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Wed May 20, 2009 2:09 am Post subject: |
|
|
Modal UIViewController title not showing
"I have a UIViewController object which is being presented as a modal view,
but I am unable to set the view title. I want the title to vary depending on
the context." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Wed Jul 08, 2009 12:33 am Post subject: |
|
|
iphonedevsdk.com - Webservice load wait
"So here how I code this
1) I'm loading and displaying UINavigationController with a root view control-
ler
2) Asking a web service for data and loading UIView with activity indicator as
a root view controller's view
3) Once the data from web service is ready I animate the opacity of the root
controller's view to 0.0 and then I'm replacing it with the UITableView ..." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Mon Sep 14, 2009 12:15 am Post subject: |
|
|
mf - dismissModalView
"I have a bunch a views connected through buttons by using the command
presentModalView." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Sun Sep 27, 2009 2:19 am Post subject: |
|
|
MF - Modal UIViewController that doesnt cover all screen
"With the normal invocation, the modal's view is resized to be as high as the
screen (460px) and slides all the way to the top. i tried forcing the size and
the y origin back to what i need in viewDidLoad and viewWillAppear: with no
effect." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Mon Mar 08, 2010 1:59 am Post subject: |
|
|
Jeff LaMarche - Implementing a Wait "Alert"…
"Now, you should be very careful about using something like this. You really
don't want to annoy your users, so you should only do this when it's absolu-
tely necessary and only show it for short periods of time." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Mon May 17, 2010 11:01 pm Post subject: |
|
|
Jeff LaMarche - Custom Alert Views
"What you can do, however, is create your own class that simulates the be-
havior of UIAlertView. You can find a sample implementation of the techni-
que discussed in this post by downloading this project. In this simple exam-
ple, we're going to create an alert view that lets the user enter a value into
a single text field."
Next day: Some Good Advice
"Joe posted some code to replace the gradient background in the previous
post. Admonished for my laziness and inspired to make the code better, I
incorporated his suggestion." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Fri Jul 16, 2010 12:30 am Post subject: |
|
|
so - UIActionSheet cancel button strange behaviour
"If you call UIActionSheet's [sheet showInView:self.view] from a view con-
troller that is a child of a UITabViewController, then the hit testing on the
cancel button fails in that portion of the UIActionSheet that lies above the
tabbar's view." |
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Fri Jul 16, 2010 12:41 am Post subject: |
|
|
meekismurder.com - UIActionSheet Cancel Button Blocked In TabBar App
"Instead of showing the ActionSheet in self.view like normal, show it in
the App Delegate Window instead, ensuring it’s on top of everything,
here’s how:
| Code: | UIActionSheet *confirmSheet = [[UIActionSheet alloc] initWithTitle:@”Do Something?”
delegate:self
cancelButtonTitle:@”Cancel”
destructiveButtonTitle:@”Confirm”
otherButtonTitles:nil];
[confirmSheet showInView:appDelegate.window];
[confirmSheet release]; |
|
|
| Back to top |
|
 |
delovski
Joined: 14 Jun 2006 Posts: 2146 Location: Zagreb
|
Posted: Tue Aug 31, 2010 2:46 pm Post subject: |
|
|
MF - Where in Cocoa can I find an infinite loop??
"Maybe use a CFRunLoopObserver. Google it. Read its reference docs.
Then look up CFRunLoop and NSRunLoop's getCFRunLoop method." |
|
| Back to top |
|
 |
|