IKImageView move tool not working in Mojave - macos-mojave

My app Plumb-Bob is based on the IKImageViewDemo:
https://developer.apple.com/library/archive/samplecode/IKImageViewDemo/Introduction/Intro.html#//apple_ref/doc/uid/DTS10004049
I compile it for MacOS 10.10+ and in my tests I noticed that the "move tool" is not working at all in Mojave (10.14) while it does as usual in the previous systems.
Since I have strongly modified IKImageViewDemo for my purposes, I have downloaded it again to make some test (see link above).
When build and run IKImageViewDemo I have verified that it has the same behavior:
On MacOS 10.14 the move tool shows its open hand cursor, but, when dragging, the image is not moved at all.
On older MacOS, it works like a charm.
I did not find any updates, deprecations and changes on IKImageView framework in 10.14, searching at Apple Developer's docs.
Can anyone address me to the solution, it is very important, in my app, to move around the zoomed image.
Thank you in advance

Related

Unable to display pdf annotations with PDFKit (macOS Sierra bug?)

I am working with PDFKit on macOS 10.12 and Xcode 8.0. I am creating some annotations in a pdf, displayed using PDFView, but I am not able to see them once created, unless to force the refreshing of the view through zomming in and out inside the page.
I have written a Minimal Working Example that you can clone from here
If you clone it in your root folder the code will run, otherwise remember to change pdfPath to the path of an existing pdf.
Additional details on the problem:
Add pdf annotation with PDF Kit in OS 10.12 (it seems that there is a workaround of the problem but I am not been able to implement it, may you are
PDFView setNeedsDisplay:YES doesn't work on MacOS Sierra 10.12 (same problem, they did not solve it)
Displaying pdf files using the PDFKit interface (same workaround suggested in the first link, but I am still not able to use it. The answer continued in a chat and so I cannot see how they managed)
Last but maybe not less important, Xcode gives me this warning (maybe solving it the problem would solve, but I cannot find an exhaustive documentation that teaches how to manage it):
Thank you in advance for all the precious answers.

SoundJS not starting in iOS

I am getting nuts a little bit.
I am working on SoundJS app for an alarm. The user will share a link and when somebody click on it, after the user defined time the alarm will sound.
I have this link:
http://online-timer.en.downloadastro.com/tools/?PageSpeed=off#5000
I am using SoundJS 0.6.2 (which should be the latest)
But the alarm not working in iOS, it works perfectly in Android and PC. Works ok on my MacBook. but not on the iPhone.
Please advice
Well on GitHub and in Slack an answere was given.
This is an iOS limitation, and some of the Android have it too.
This issue is because I must "unlock" the web audio context on iOS using a mousedown/touchend event. In SoundJS 0.6.2, any document-level click/touchend will do it (so there is nothing extra that is need to be done). Earlier versions required to do some additional manual steps (which can still be seen in the MobileSafe demo in GitHub, which is not necessary any more).

Simulator/Device name shows only Unity-iPhone

Just loaded a project in Unity 3D (4.34f) it is working as desired, Built and Run for iOS devices. works perfect in the Xcode (5.1.1) simulator.
In the Simulator/Device Name is written Unity-iPhone, it does not show neither my iPad or my iphone when connected.
What am I missing? any help?
Easy, happens to me frequently, two choices deselect the Development Build in build settings or in the player settings change the dropdown list of Optimization SDK Version to "Device SDK".
Let me know if works for you....

Where can I find an iPhone simulator for Xcode 3.1.4

My kids want to learn to write apps on their MacBook which currently runs OS version 10.5.8.
I have downloaded Xcode 3.1.4 but it doesn't seem to have the iPhone Simulator.
Does anyone know where I can find this?
(And are their better tags I should use for this question?)
Thanks.
(UPDATE: I down loaded the " xcode 3.2.6 & ios sdk 4.3" dmg file from Apple in the hopes of accessing just the "iPhone simulator" but repeated attempts to open the .dmg file on my OS10.5.8 Macbook result in a complete, "blackscreen" crash.)
I am really very sorry because this is not straight to your question. But if I were you, I'd like to encourage them to start with Android. To me, an open-platform is more preferred. Beside that, Java is a strong/ dynamic language when comparing to C/C++.
Android developer site
Eclipse IDE
Android SDK
ADT plugin for Eclipse
API guides
Training videos
Hope they will like :-)
Are you sure the simulator was not included? One thing to remember is it won't be shown with xcode in your applications folder.
To use the simulator you have to launch it from xcode by pressing the play button in the top left corner of the interface. If you have already used xcode with an iPhone/iPod/iPad make sure you select simulator from the drop down next the play and stop buttons(press and hold to change what is selected).
If you want to make sure you can access the simulator without xcode, launch the simulator as described above and then right click(or ctrl click) the icon for the simulator and select keep in dock from the options menu.
Hopefully the above helps you with your problem. If xcode truly did not come with the simulator your best option is to uninstall xcode(after backing up any projects) and trying a fresh install. Also try checking Apples dev center (https://developer.apple.com/devcenter/ios/index.action) for information about xcode and the simulator.

Interface builder is unable to open documents of type iPad XIB

I got a application from my teammate, and it is for both iphone and ipad devices (which it is developed under iPhone SDK 3.2).
I have iPhone SDK 3.1.3 installed in my mac book. When i tried to compile the application for iphone simulator i got the following error.
Interface builder is unable to open documents of type iPad XIB.
The above error is for interface builder created for ipad.
My Question is we can't compile the application on iPhone SDK 3.1.3 which the application developed under iPhone SDK 3.2?
Please shed some light of this?
thanks
mindus
Go to your project settings, and delete the line that says Interface Builder Plugin search path or something similar.
the exact line in project.pbxproj is: IBC_PLUGIN_SEARCH_PATHS = "${PROJECT_DIR}/**";
Short answer
Temporarily remove the iPad xib when working with the 3.1.3 SDK. Put them back when you go back to 3.2 and above.
Longer answer
This cropped up for me when compiling against 3.1.3. You can use conditional compiling to get code user newer features to build successfully (see Matt Gallagher's helpful post on conditional compiling).
There may be a smarter way to tell the compiler not to look at the iPad xibs. For testing on the 3.1.3 simulator I simply made a copy all my iPad xibs and then removed them from the xcode project. When going back to my current development set up, you have to put them back. It's a bit of pain, but not that fiddly.
To fix this:
Press Command-1 to go to the project tree
Select your project
The in the right panel select your project, and then click on "Build Settings"
In search field just below the "Build Settings" enter: "Overriding Plug-In"
Now, the only visible setting left should say "Overriding Plug-In and Framework Directory"
Double-click the value and remove all entries using "-" button
Click somewhere else so settings are saved
That should fix it