Thứ Tư, 8 tháng 6, 2016

Transport security has blocked a cleartext HTTP

Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
enter image description here
Here are the settings visually:
visual settings for NSAllowsArbitraryLoads in info.plist via Xcode GUI
Read More...

Xcode Debugger: view value of variable

I also use
po variableName
print variableName
in Console.
In your case it is possible to execute
print [myData objectAtIndex:indexPath.row]  
or
po [myData objectAtIndex:indexPath.row]
Read More...

XCode Debug Shortcuts

This is an easy one indeed. Go to Xcode>Preferences>Key Bindings and search for 'step'. There you can define your shortcuts for each action.
PS: As @Jenn noted below "Pause/Continue" is missing from this list, which is by default bound to ⌃⌘Y
XCode Key Bindings
There are many good resources to know Xcode shortcut. I am listing some of here:
I know this is not the direct answer of the question. The Direct answer is already been give by Alladinian. But I think this answer is served as a good resource who is interested in Xcode shortcuts.
OLD ANSWER enter image description here
NOTE:
Read More...

Thứ Ba, 5 tháng 1, 2016

Android Studio Shortcuts

Go to class CTRL + N
Go to file  CTRL + Shift + N
Navigate open tabs ALT + Left-Arrow; ALT + Right-Arrow
Look up recent files CTRL + E
Go to line CTRL + G
Navigate to last edit location CTRL + SHIFT + BACKSPACE
Go to declaration CTRL + B
Go to implementation CTRL + ALT + B
Go to source F4
Go to super Class CTRL + U
Show Call hierarchy CTRL + ALT + H
Search in path/project CTRL + SHIFT + F


Programming Shortcuts:-

Reformat code CTRL + ALT + L
Optimize imports CTRL + ALT + O
Code Completion CTRL + SPACE
Issue quick fix ALT + ENTER
Surround code block CTRL + ALT + T
Rename and Refractor Shift + F6
Line Comment or Uncomment CTRL + /
Block Comment or Uncomment CTRL + SHIFT + /
Go to previous/next method ALT + UP/DOWN
Show parameters for method CTRL + P
Quick documentation lookup CTRL + Q
Delete a line CTRL + Y
View declaration in layout CTRL + B
To find Usage of selected Text ALT + F7 or goto Edit -> Find -> Find Usages
To check unused res files in android studio - Control + Alt + Shift + i and type "Unused resources"

*** For Windows/Linux, you can go to File -> Settings -> Editor -> General -> Auto Import -> Java and make the following changes:
  • change Insert imports on paste value to All
  • markAdd unambigious imports on the fly option as checked
On a Mac, do the same thing in Android Studio -> Preferences
Read More...