Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7828785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:29:02+00:00 2026-06-02T10:29:02+00:00

Having followed a tutorial on Ray Wenderlich’s site with success, I decided to try

  • 0

Having followed a tutorial on Ray Wenderlich’s site with success, I decided to try and manipulate what I learned and apply it towards a CITransition, particularly CIDissolveTransition. However, I can’t seem to get the image to appear even after cross-referencing what I’ve learned against Apple’s own filter documentation (which, I gotta say, are dated and incredibly difficult to adapt outside of their own convoluted examples). Here is what I have so far:

NSURL *url = [NSURL fileURLWithPath:imagePath];
NSURL *url2 = [NSURL fileURLWithPath:image2Path];
CIContext *context;
CIFilter *filter;
CIImage *beginImage, *targetImage;
UIImageView *mainImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
[self addSubview:mainImage];

beginImage = [CIImage imageWithContentsOfURL:url];
targetImage = [CIImage imageWithContentsOfURL:url2];

if(context == nil)
{
  NSLog(@"Creating Context");
  context = [CIContext contextWithOptions:nil];
}
if(filter == nil) {
  NSLog(@"Creating filter");
  filter = [CIFilter filterWithName:@"CIDissolveTransition" keysAndValues:@"inputImage",   beginImage, @"inputTargetImage", targetImage, @"inputTime", [NSNumber numberWithFloat:0.5], nil];
}

CIImage *outputImage = [filter outputImage];

CGImageRef cgimg = [context createCGImage:outputImage fromRect:[outputImage extent]];
UIImage *newImg = [UIImage imageWithCGImage:cgimg];

[mainImage setImage:newImg];

All I’ve been getting is a black screen where mainImage should be displaying. The ultimate goal is to be able to cycle through a sequence of images with this dissolve effect using a slider (which I am only assuming will work), but I can’t even get this static image to display. Any help will be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:29:03+00:00Added an answer on June 2, 2026 at 10:29 am

    Your call to filterWithName:keysAndValues: is returning nil because iOS doesn’t know how to make a CIDossolveTransition filter.
    Core Image for iOS doesn’t support all the filters that Core image for Mac OS does. See this answer

    You can read Apple’s Core image Filter reference and see which filters are supported in iOS, but the bad news is that transitions didn’t make the cut for iOS 5. The only filter available in iOS 5 that deals with compositing is CISourceOverCompositing, which probably isn’t very interesting to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having followed a tutorial online, I have a sessions controller that looks like: class
I am having troubles reading XML, I followed this tutorial , and generated the
I have followed the Apple documentation and I am having no success: - (NSString
I'm having problems using the jQuery plugin LavaLamp ; I followed this tutorial but
I am having trouble trying to secure ELMAH. I have followed Phil Haacked's tutorial
Having followed a tutorial I have a hashtable that contains a TcpClient object that
Virtual host not working in the NETWORK I just followed this site tutorial, Virtual
Strange issue I am having with my MVC3 project. I have followed a simple
I'm having a really tough time getting XMPPFramework to work. I've followed every direction
I'm having a few problems with the forgot password system from this tutorial .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.