iphone - Reusable NSMutableDictionary -


In that forum someone offered me a code solution that used to work great, but for my understanding, I would like to know What is the difference between the 2 blocks of code:

Block 1

  NSMutableDictionary * step_info = [NSMutableDictionary Dictionary];  

block 2

  NSMutableDictionary * step_info = zero; Step_info = [NSMutableDictionary dictionary];  

It may also be important to mention that step_info has to be loaded again in another NSmutabledictionary to reload.

Thank you for your help

None compiler step_info = Nil is optimized remotely and you are left with the same code.

The following is another method you can take:

  NSMutableDictionary * step_info; Step_info = [NSMutableDictionary dictionary];  

Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -