I had an app working in Xcode 8. After importing it to Xcode 9, autolayout fails.
Multi-line UILabels only showing 1 line. Multi-line UIlabels in the UITableView also show 1 line. I have no constraint issues.
I used something like
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowHeight = 100
When I implemented a solution as shown here in the converted project, auto layout failed.
But IF I create a new project in Xcode 9 and implement the same solution as given in link above, auto layout works!
Has anyone encountered such an issue? Is there a way to fix my auto-layout in converted project without re-doing all?
Edit
It looks like someone is facing a similar issue here.
Edit 2017.10.18
A possible solution, somewhat hack-ish; here
After further research, I found the answer from the following post; https://stackoverflow.com/a/28545177/1179312
What happened prior upgrade to XCode9, I did override intrinsicContentSize in an extension to UILabel. I decided NOT to use this but forgot to remove it from my project. Then I upgraded to XCode 9 and confused me a lot.
This led to unpredictable behaviour. The fault was mine. Removing the function was previously overriding intrinsicContentSize fixed the following;
autolayout issue
multiline label issue
I was hoping to find an easy way to print PDFs that display from my flex developed mobile iphone app.
Doesn't look like Adobe has made this available on Air.
At this point, is there any way to print anything from a flex mobile app? Print screen or print bitmap?
Thanks!
Yes and no. It is not available through the AIR SDK in any shape or form on mobile (as of 3.7, anyway).
However, you can create an AIR Native Extension (a code base written in Objective-C or Java, depending on platform that connects through an AS3 library) that can do this. On my last project, we tasked one of our iOS devs to create an extension that allowed for the native "Open In" and "Sharing" menus to display and interact with data in an AIR app. Along with that share menu came the option to Print, depending on content. It worked great and did exactly as we had hoped. I am sure you could build one that only did this with the print menu and did not do the full Share menu if needed.
I will warn you, however, that native extensions are not easy to create by any means. It involves knowing a separate language, using poorly documented libraries from Adobe, and command line work. Additionally, an iOS ANE must be created on OS X in XCode. There is no way (that I know of, at least) to create it in Windows or Linux.
How can I go step by step in Xcode while debugging with a keyboard shortcut? I'd like to make step over and step into with the keyboard, I've looked for keysheets and such but didn't find keys for that particular actions.
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 (ctrl + command + Y)
See this cheat sheet about Xcode keyboard shortcuts:
UPDATE:
There are many good resources to know Xcode shortcut.
I am listing some of here:
Shortcuts of Xcode & Simulator with demo : Xcode Shortcuts the iOS Cheat Sheet
Xcode Cheat Sheet by Git Tower : xcode-cheat-sheet-detail
Very in depth detail about Xcode shortcut: Xcode Efficiency Tips: Keyboard Shortcuts
One more detail article on this with animation: Becoming the Xcode Power User
Apple Official document for Xcode: About Xcode Gestures and Keyboard Shortcuts
One good overview of Xcode shortcut: Xcode 6 Keyboard Shortcuts
Simple shortcuts list: Xcode Keyboard Shortcuts
Shortcut Explain with animation: My Favorite Xcode 8 Shortcuts
Some shortcuts to improve speed: 17 Xcode Tips and Tricks
I know this is not the direct answer to 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
NOTE:
Visit this link for PDF version: Xcode 4.0 Keyboard Shortcuts (Blue)
If any one is interested in updating this for Xcode 5.x then visit original GitHub repo: Xcode Keyboard Shortcuts
Apples website has an easy to read list:
https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/xcode_help-command_shortcuts/MenuCommands/MenuCommands014.html
Specifically F6 to step over and F7 to step into are the ones I use the most.
i have a project which already make in flex 3.Now i want to shift it in flash4/flex4 .
Anyone how tell me how i can shift it into flash4/flex4.And can use the new features in my project.
kind regards.....
http://help.adobe.com/en_US/flex/using/WSc86a71867f5b4fa8351045f125dffc40d0-7fff.html
Anyone who want this study this article.
http://help.adobe.com/en_US/Flex/4.0/FeaturesAndMigration/flex_4_features.pdf
I have been struggling with Xcode 3, and decided to jump directly to Xcode 4.
However, a big problem is that there is very little support like articles, videos, and projects I can use as templates.
Does there exist support like this at all?
Can I use Xcode 3 projects as templates?
Would it be easy to work from Xcode 3 tutorials?
I have now been using it for one day. Some things in the interface designer are quite different. For example, I can't get to subviews in the tab bar control (but mostly I manage, and can follow examples).
Thanks.
I'm doing the same thing. Xcode 4 is in pre-release, so there's not much in the way of tutorials while the tools are in a semi-NDA limbo and could be changed significantly before final release.
I highly recommend reading tutorials (I'm working my way through Aaron Hillegass' books on iPhone and OSX development) that use Xcode 3, and allowing extra time for learning where to map across to the new version.
Xcode 4 is much better organised, so it can be annoying but not impossible to find what you are looking for fairly quickly.
Resources you should go to first:
WWDC10 sessions 307, 308 and 315:
Introducing Xcode 4,
Developing your app with Xcode 4, and
Using Interface Builder in Xcode 4.
Access these through the developer portal. They are the definitive Apple guide to the new design and workflow.
In the Xcode 4 Help menu, the Xcode 4 Transition guide is the second choice. I skimmed it, then kept coming back to dive into topics when they came up.
Xcode 4, despite being "released", is an absolute disaster. I would wait for at least a couple of updates (beyond 4.01) before moving to it.
Basic functionality is severely broken. Breakpoints, syntax highlighting, basic functionality in the Interface Builder IU... I don't even know where to begin.
The document management, which was the towering defect of Xcode's design up to this point, has been changed but sadly not fixed. It might even be worse.
At first I had some good impressions. Early notes:
More-sensible defaults for debugging hotkeys.
There's now "Close project" in the File menu!
You can finally set up sounds for lots of build & search events, with a GUI. Nice.
There's a drop-down that shows files that are associated with the one you're editing. This might be useful, but any convenience this might add is ruined by the fact that there's no quick "counterpart" button like there used to be. You have to dig through a menu to go from header to source or vice versa.
Tabs are upside down, extending off the toolbar (WTF). Also, the "X" to close indicator is missing from each tab unless you roll over the tab. This kind of Easter-egg UI hides information from the user and should be abolished.
The tabs don't work well for a couple of reasons. First, there can be two editing panes under one tab with different documents; the tab only shows the name of one of them. You also can't move documents between panes, which you often want to do when referring to different objects and interfaces. Visual Studio solves both of those problems easily by having separate tab groups above each editing pane and letting you drag documents between the two groups.
A second editing pane is always referred to (and indicated in the toolbar) as an "Assistant" editor even if you didn't invoke the assistant (which is bafflingly denoted by a Batman icon button).
View options are under View, where they belong, instead of being incorrectly placed under the Window menu.
If you're typing a call to a function and you're using another function call as a parameter, Xcode's auto-completion appears to automatically prefer functions whose return type matches the parameter you're filling out. EXCELLENT.
But there are bugs aplenty. So many that it's very hard to get work done at times.
One particularly infuriating bug is Xcode's failure to indicate when and where it has stopped at a breakpoint. In many instances, it will stop and pull up the source file, but there's no execution point highlighted. The editor just shows the top of the file, and nothing happens as you step through. The current line is not highlighted, and nowhere does Xcode say, "Stopped at breakpoint." It just says "running."
There's no way to sort files your files in the treeview. NONE. Xcode 3 was bad enough in not sorting them automatically, making you go and sort them over and over and over through the life of a project. Now that's not even an option. WTF?
Xcode leaves your editor window littered with error highlights and messages even after you've fixed the code and recompiled. It turns out that these errors apply to a different target, even though you never built that target and the code they're complaining about doesn't exist anymore.
Xcode will overwrite your syntax-highlighting choices for specific symbol types. You can change them again and again, and Xcode will overwrite your settings inexplicably. You can watch it happen.
THERE'S NO "BUILD" BUTTON IN THE TOOLBAR, AND YOU CAN'T ADD ONE. In fact, the toolbar is not customizable at all, and there's only a "Run" button. What if you don't want to run? Yep, you have to look up the hotkey.
What did they do with all the extra space in the toolbar? Made the project-config dropdown NARROWER. It's so small that it can't show you WTF you're working on. Meanwhile, there's a vast strip of empty space right next to it. Unbelievable.
The Xcode team tried to clean up the mess that was project settings, adding the concept of "schemes." It's mostly an improvement, but buggy. But I'm out of time for this update...
I am not sure what kind of documentation they give you with Xcode 4, however there should be something in the help menu I imagine. WWDC also had a video on Xcode 4, it was their "State of Union" address. Here is a link to the iTunes videos.
Just to add to Luke's point, it all depends on how much code you know. I am going to stick with V3 as compile errors etc are not automatically fixed and I want to learn how the code works, this is going to help in the future.
Current tutorials (mostly about V3) will help you grasp the basics of Xcode, as V4 is easier overall but understanding the basics is the most important aspect.
Localization seems to be pretty significantly broken in 4.0, with constant crashes for me.
I would wait for 4.0.2, or something..
I just switched back to 3.2.6 after I tried out XCode 4. It has so many bugs and crashes, it was too frustrating. Also its updates are not included in the normal apple updates, you have to re install the whole software via the installer. Its ridiculous! Although the git integration and drop down syntax completion is cool, I think I will wait till 4.0.3 before updating again!