Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modality & Alerts

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 887
Location: Europe

PostPosted: Mon May 11, 2009 3:42 pm    Post subject: Modality & Alerts Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 887
Location: Europe

PostPosted: Mon May 11, 2009 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Tue May 12, 2009 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Wed May 20, 2009 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Wed Jul 08, 2009 12:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Mon Sep 14, 2009 12:15 am    Post subject: Reply with quote

mf - dismissModalView

"I have a bunch a views connected through buttons by using the command
presentModalView."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Sun Sep 27, 2009 2:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Mon Mar 08, 2010 1:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Mon May 17, 2010 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Fri Jul 16, 2010 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Fri Jul 16, 2010 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 2146
Location: Zagreb

PostPosted: Tue Aug 31, 2010 2:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group