Tag: reference

STL map operator[] not const

STL里Map的Operator和其它的Container不太一样。 因为Map的Operator可以提供这种操作: map testMap; testMap["a"] = "b"; 所以Map的Operator返回的是T&,而不是const T& 如果需要得到const reference,可以这样: map testMap; const string& constMember = testMap.find("a")->second;

[iOS]use different names for icons and launch images

Useful references: In order to use different names for icons and launch images in your App, you need to add new entries in your info.plist file. For icons, refer to this: App Icons on iPad and iPhone For launch images, refer to this: App Launch (Default) Images