mercredi 6 mai 2015

GMSMapView with custom tile overlay blinking when map is zooming

I use custom GMSTileLayer and my pre-defined tiles who stored in app.

When i increase/decrease map zoom level in the official google maps app, map "stretched" old tiles and remain on screen for as long as new needed tiles in loaded

In my app, with each change the zoom or frame the map is blinked for redraw tiles and old tiles are not displayed (i see grey color, and not old "stretched" tile).

How i make "right" zooming/tiling like in google maps official app?

How should I architect my app to process incoming Bluetooth data?

I'm working on a project where I have an app that receives data over BLE from a wearable peripheral, but I'm struggling with how to architect the app. Currently I have a singleton BLEManager class that constantly receives data in the background and then uses NSNotificationCenter to send it to the active view controller. This works but has gotten messy and seems non-ideal since I have multiple view controllers that each process the data in the same way and then just display it differently. Additionally, there are some settings related to the data processing that can be changed in app and need to be the same everywhere. It would be nice if the BLEManager sent the data to a central processing class and then the processed data was sent to the active view controller but I'm not sure the best way to set this up.

I could incorporate all the processing into the BLEManager class but then it would get pretty bloated and unintuitive and wouldn't be nice to work with moving forward. If I make a separate processing class thats a property of the BLEManager then I'd have to go through the BLEManager if I wanted to get or change any variables in the processing class from anywhere else which would be annoying. I could make a singleton processing class that receives data from the BLEManager and then sends it to the active VC but I've seen people say to avoid singletons so I'm hesitant to use another one even though this seems like it could be a good solution.

Is there a standard or recommended way to architect an iOS app to process incoming data from Bluetooth and then send it wherever its needed?

Invalid Binary with Invalid Signature

I am in the process of submitting my first Ionic application to the store. However I am receiving an error every single time that I try to submit my binary to the store:

Invalid Signature - A sealed resource is missing or invalid. The binary at path [Who Paid Last?.app/Who Paid Last?] contains an invalid signature. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate....

I have verified that my certificates are correct. I have even tried moving my .git folder outside of the directory, but still no luck. I have tried about 7 different configurations and still the same result time and time again.

The crazy thing is that after my archive has been built, I validate using XCode's validator. The validator says that my .ipa has zero errors and that it is ready for submission, but iTunes Connect says differently.

I have also tried following this tutorial on troubleshooting but without any luck.

Submit a new build for iOS App for another account

I am an iOS developper and publish apps under my name.

I was requested by a friend to help him update his own app. He is registered as a developer himself, has valid accounts. And I would like to submit myself the new build. Of course he gave me the full source code.

He tried to add me as technical user but this was not accepted. Then I created a new mail account, which worked. What is next step ? I need his certificates, profiles,... ? Or is it just not possible ?

Of course I could update the code on my side then give him back the full directory. But not very satisfying.

Thank you.

AutoLayout create constraints programatically

enter image description here

How to correct pin black view to red view with padding I displayed using NSLayoutConstraint constraintWithItem.

So I placed red view in blue container with constraints. It works for me. So red square has appropriate width let's say 50pt and the same height. I've pin it to the left and top sides of blue container.

My goal is to pin black view to red view with some distance (yellow line) from red view say 5pt and then black view should stretch to the right side of blue container and for example green line should be 10pt.

So the lines just show const distances between views.

How to fetch data using alchemy api

I have my Cloudant database with table name tasks I want to implement AI in my iOS app. When a user clicks on AI button I need to show user tasks for particular day in natural language using the Alchemy Api.

How to do I integrate alchemy API in iOS app with Cloudant DB.

Phone gap -Apple rejects the app ITMS 90096 errors with Splash Screen

I am trying to deploy an app to App Store however apple rejects the app. I am getting an error ITMS :90096 which is specific to 4 inch splash screen for iPhone 5. I have added the splash into the app and referred it into the config.xml. I have tried various solutions I found on your site and also other sites but no luck. I am not sure how to fix it and its getting real frustrating now. Can someone help? The screenshot of the error is here ==> http://ift.tt/1zC3LAy