Click here to Skip to main content
14,976,689 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
GeneralRe: Difference between C and Objective-C Pin
Dennis E White11-Jun-14 4:24
professionalDennis E White11-Jun-14 4:24 
GeneralRe: Difference between C and Objective-C Pin
Richard MacCutchan11-Jun-14 5:53
mveRichard MacCutchan11-Jun-14 5:53 
AnswerRe: Difference between C and Objective-C Pin
Dennis E White11-Jun-14 4:22
professionalDennis E White11-Jun-14 4:22 
GeneralRe: Difference between C and Objective-C Pin
Manikandan1011-Jun-14 17:31
professionalManikandan1011-Jun-14 17:31 
GeneralMessage Closed Pin
15-Nov-14 8:37
MemberEvent Blogger15-Nov-14 8:37 
QuestionUIWebView Scroll delegate Pin
Erdinc2720-May-14 22:17
MemberErdinc2720-May-14 22:17 
AnswerRe: UIWebView Scroll delegate Pin
Dennis E White21-May-14 4:38
professionalDennis E White21-May-14 4:38 
GeneralRe: UIWebView Scroll delegate Pin
Erdinc2721-May-14 4:48
MemberErdinc2721-May-14 4:48 
i think i found the solution. The commented UIview animation block locked the main thread i think that is why Scroll View couldnt response to the new touches. but with this new animation block it works well.

- (void) scrollViewDidScroll:(UIScrollView *)scrollView
{
    
    if (self.lastContentOffset > scrollView.contentOffset.y)
    {
        if (self.altView.frame.size.height + self.altView.frame.origin.y > self.screenHeight)
        {
//            [UIView animateWithDuration:0.5f animations:^{
//                self.altView.frame = CGRectMake(0, self.altView.frame.origin.y-1, 320, 48);
//                self.tarayici.frame = CGRectMake(0, self.tarayici.frame.origin.y, 320, self.tarayici.frame.size.height-1);
//            }];
            
            [UIView animateWithDuration:0.5f delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
                self.altView.frame = CGRectMake(0, self.altView.frame.origin.y-1, 320, 48);
                self.tarayici.frame = CGRectMake(0, self.tarayici.frame.origin.y, 320, self.tarayici.frame.size.height-1);
            } completion:^(BOOL finished) {
                
            }];
        }
        
    }
    else if (self.lastContentOffset < scrollView.contentOffset.y)
    {
        if (self.altView.frame.origin.y < self.screenHeight)
        {
//            [UIView animateWithDuration:0.5f animations:^{
//                self.altView.frame = CGRectMake(0, self.altView.frame.origin.y + 1, 320, 48);
//                self.tarayici.frame = CGRectMake(0, self.tarayici.frame.origin.y, 320, self.tarayici.frame.size.height+1);
//            }];
            [UIView animateWithDuration:0.5f delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
                self.altView.frame = CGRectMake(0, self.altView.frame.origin.y + 1, 320, 48);
                self.tarayici.frame = CGRectMake(0, self.tarayici.frame.origin.y, 320, self.tarayici.frame.size.height+1);
            } completion:^(BOOL finished) {
                
            }];
        }
    }
    
    self.lastContentOffset = scrollView.contentOffset.y;

}

vemedya.com


modified 22-May-14 4:15am.

QuestionRegarding objective-c's IDE and working OS?! Pin
Amr Bakri14-Apr-14 13:35
MemberAmr Bakri14-Apr-14 13:35 
AnswerRe: Regarding objective-c's IDE and working OS?! Pin
Richard MacCutchan14-Apr-14 21:54
mveRichard MacCutchan14-Apr-14 21:54 
AnswerRe: Regarding objective-c's IDE and working OS?! Pin
Dennis E White15-Apr-14 5:00
professionalDennis E White15-Apr-14 5:00 
AnswerRe: Regarding objective-c's IDE and working OS?! Pin
future201510-Jun-14 3:50
Memberfuture201510-Jun-14 3:50 
AnswerRe: Regarding objective-c's IDE and working OS?! Pin
KarstenK29-Sep-14 7:38
mveKarstenK29-Sep-14 7:38 
QuestionIs it possible Java App developed on Net Bean that can Translate into Objective C for IOS Pin
Member 103822404-Mar-14 9:06
MemberMember 103822404-Mar-14 9:06 
SuggestionRe: Is it possible Java App developed on Net Bean that can Translate into Objective C for IOS Pin
Richard MacCutchan4-Mar-14 22:33
mveRichard MacCutchan4-Mar-14 22:33 
QuestionOSX Desktop Manager (Quartz Compositor) Pin
Member 1060876119-Feb-14 0:57
MemberMember 1060876119-Feb-14 0:57 
AnswerRe: OSX Desktop Manager (Quartz Compositor) Pin
Richard MacCutchan19-Feb-14 3:03
mveRichard MacCutchan19-Feb-14 3:03 
GeneralRe: OSX Desktop Manager (Quartz Compositor) Pin
Member 1060876121-Feb-14 0:51
MemberMember 1060876121-Feb-14 0:51 
GeneralRe: OSX Desktop Manager (Quartz Compositor) Pin
Dennis E White21-Feb-14 5:12
professionalDennis E White21-Feb-14 5:12 
GeneralRe: OSX Desktop Manager (Quartz Compositor) Pin
Member 1060876122-Feb-14 15:35
MemberMember 1060876122-Feb-14 15:35 
AnswerRe: OSX Desktop Manager (Quartz Compositor) Pin
Dennis E White19-Feb-14 4:36
professionalDennis E White19-Feb-14 4:36 
GeneralRe: OSX Desktop Manager (Quartz Compositor) Pin
Member 1060876121-Feb-14 0:41
MemberMember 1060876121-Feb-14 0:41 
GeneralRe: OSX Desktop Manager (Quartz Compositor) Pin
Dennis E White21-Feb-14 4:57
professionalDennis E White21-Feb-14 4:57 
Questionfood menu restaurant Pin
Member 1047199011-Feb-14 0:26
MemberMember 1047199011-Feb-14 0:26 
AnswerRe: food menu restaurant Pin
Richard MacCutchan11-Feb-14 1:04
mveRichard MacCutchan11-Feb-14 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.