Yes they were, but the key difference is that North Korea is not actually a threat and its nuclear weapons program is obviously purely a deterrent. The track record of Iran is very different. Even if nuclear weapons were only a deterrent they would likely embolden them to be more aggressive abroad.
Just so that people disagreeing with you can understand: Iran is, as I type this, sending bombs banned by 120 countries (cluster bombs, and they're banned because for they indiscriminately target civilians) on Israel. They also send their islamist guards, a few weeks ago, to finish the job inside hospitals: to slaughter the wounded. As part of tens of thousands executions.
Anyone who thinks the current iranian regime with the atomic bomb wouldn't nuke Israel is out of its mind.