|
Try Mark Price tutorial from udemy..
|
|
|
|
|
There are lots of free tutorials also available in youtube . try them .
|
|
|
|
|
is there something better than yt videos?
|
|
|
|
|
Yeah lots of things, You can read apple documentation. Or you can for udacity , udemy courses
|
|
|
|
|
Satbeer Singh wrote: ...ios app for my website. Does such a thing exist?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
i want to use time bar with date in my xamarin iOS app, like scroll type.it's have any plugin or create alternate way. any one please help to me.
|
|
|
|
|
I am working on a countdown timer app that chimes when it reaches 0. I want the timer to recycle after the chime and countdown again until the stop button is pressed. I am a non-programmer that is doing this for fun, I just need some sample code to get over this hurdle. Any assistance would be greatly appreciated.
func counter()
{
seconds -= 1
label.text = String(seconds) + " Seconds"
if (seconds == 0)
{
timer.invalidate()
audioPlayer.play()
}
}
I want the timer to start over automatically after the audioPlayer stops.
modified 27-Jan-17 11:58am.
|
|
|
|
|
This is a case for Google, you need to search for iOS samples. You can also look at the samples here on CodeProject at [^].
|
|
|
|
|
how to change the colour of particular pixel and pixel area covered with the same colour.I am able to get the particular pixel colour using below swift code but I am not able to get surrounding area which has same colour pixel and unable to change it.
import UIKit
class ColorOfImage: UIImageView {
var lastColor:UIColor? = nil
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
if self.isHidden == true {
self.next?.touchesEnded(touches, with: event)
return
}
let touch: UITouch = touches.first!
var point:CGPoint = touch.location(in: self)
self.lastColor = self.getPixelColorAtLocation(point:point)
}
public func createARGBBitmapContext(inImage: CGImage) -> CGContext {
var bitmapByteCount = 0
var bitmapBytesPerRow = 0
let pixelsWide = inImage.width
let pixelsHigh = inImage.height
bitmapBytesPerRow = Int(pixelsWide) * 4
bitmapByteCount = bitmapBytesPerRow * Int(pixelsHigh)
let colorSpace = CGColorSpaceCreateDeviceRGB()
let bitmapData = malloc(bitmapByteCount)
let context = CGContext(data: bitmapData, width: pixelsWide, height: pixelsHigh, bitsPerComponent: 8, bytesPerRow: bitmapBytesPerRow, space: colorSpace, bitmapInfo: CGImageAlphaInfo.premultipliedFirst.rawValue)
return context!
}
public func getPixelColorAtLocation( point:CGPoint) -> UIColor {
var point = point
var context:CGContext? = nil
context = self.createARGBBitmapContext(inImage: (self.image?.cgImage)!)
if context == nil {
return UIColor.white
}
var pixelsWide = (self.image?.cgImage)!.width
var pixelsHigh = (self.image?.cgImage)!.height
var rect = CGRect(x:0, y:0, width:Int(pixelsWide), height:Int(pixelsHigh))
var xScale:CGFloat = CGFloat(pixelsWide)/self.frame.size.width
var yScale:CGFloat = CGFloat(pixelsHigh)/self.frame.size.height
point.x = point.x * xScale
point.y = point.y * yScale
var x:CGFloat = 1.0
if (self.image?.responds(to: #selector(getter: self.image?.scale)))! {
x = ( self.image!.scale)
}
context?.clear(rect)
context?.draw((self.image?.cgImage)!, in: rect)
let data = context?.data
var color:UIColor? = nil
if data != nil {
let dataType = data?.assumingMemoryBound(to: UInt8.self)
let offset = 4*((Int(pixelsWide) * Int(point.y)) + Int(point.x))
let alpha = dataType?[offset]
let red = dataType?[offset+1]
let green = dataType?[offset+2]
let blue = dataType?[offset+3]
color = UIColor(red: CGFloat(red!)/255.0, green: CGFloat(green!)/255.0, blue: CGFloat(blue!)/255.0, alpha: CGFloat(alpha!)/255.0)
}
else
{
}
free(data)
return color!;
}
}
After some research I found one link to clear image like wand tool but that code is for mac can anyone tell me how to use it for ios app
http://losingfight.com/blog/2007/08/28/how-to-implement-a-magic-wand-tool/
or if there is any other code then please help me in changing the same pixel colour which covers particular area in UIImage.
can one please tell me how do use magic wand tools in ios?
modified 30-Jan-17 0:29am.
|
|
|
|
|
I am not an expert in this field But if you find the solution, I am interested
|
|
|
|
|
|
I am not an expert in this field so if you find the solution, I am interested
|
|
|
|
|
Hi,
I want to pass coordinates from FirstVC to my SecondVC.
and inside the SecondVC which holds MyMap
I want the map to show the coordinates I've sent from the FirstVC
to do this Here is what I did.
SecondVC
override func viewDidLoad() {
super.viewDidLoad()
self.MyMapView.delegate = self
self.MyMapView.isMyLocationEnabled = true
self.MyMapView.settings.myLocationButton = true
}
I have this Function
func InitGoogleMaps(pMyMapInf:MyMapInf){
if (pMyMapInf.IsEmpty)
{
return
}
let camera = GMSCameraPosition.camera(withLatitude: pMyMapInf.MyDestinLongitute, longitude: pMyMapInf.MyDestinLongitute, zoom: 6.0)
let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
MyMapView = mapView
MyMapView.isMyLocationEnabled = true
self.MyMapView.camera = camera
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: pMyMapInf.MyDestinLatitude, longitude: pMyMapInf.MyDestinLongitute)
marker.title = pMyMapInf.MyDestinCity
marker.snippet = pMyMapInf.MyDestinCountry
print("Latitude is: \(pMyMapInf.MyDestinLatitude) ")
print("Longitude is: \(pMyMapInf.MyDestinLongitute) ")
print("City is: \(pMyMapInf.MyDestinCity) ")
print("Country is: \(pMyMapInf.MyDestinCountry) ")
marker.map = mapView
MyMapView.animate(to: camera)
}
And I have this Observer to trigger the above function.
var MyMapInfo:MyMapInf = MyMapInf()
{
didSet{
InitGoogleMaps(pMyMapInf: MyMapInfo)
}
}
so what happens is: on my FirstVC
I create a new instance of MyMapInf()
var loFVcMyMapInf = MyMapInf()
SecondVC.MyMapInfo = loFVcMyMapInf
and I present the SecondVC(or I present the SecondVC then set didset observer , When this happens I see that my function is triggered and I see the values I print on the console, however, there ain't any movements on the map or a marker. it's still
what am I missing here?
|
|
|
|
|
Hi,
1) I want to integrate Apple Pay on my website (so it's a Apple Pay - Web Integration), using the Braintree payment provider, JS as a client side language and Java as a server side language.
I'm having difficulties creating a proper sandbox environment for my Apple Pay implementation Testing.
Followed the steps from the Apple docs but it seems they are not accurate :
-says to create a Merchant Id, one for sandbox and one for production (as far as I can see, at the moment of creating those 2, there's no way of telling that you want to use one for the development environment and the other for the production)
- after that, says to create a Certificate using the Merchant ID created before; if I sign in to my Apple Developer Account, I can see the 'Development' and the 'Production' sections, but when I try to create a sandbox/development certificate, Apple Pay is not available for it, only in the production section (see below images).
Is there a way to create a Sandbox / Development Apple Pay certificate, or are there any other ways to properly test the Apple Pay integration ?
2) I tried creating a sandbox user tester account from iTunes, but when I tried to login on Itunes on my Ipad which I'm using for testing, I get the following error: 'Itunes account creation not allowed. This Apple ID cannot be used with the Itunes Store at this time. Please try again later.' (I already verified my Apple ID and followed all the steps to activate the account, but without any success)
3) As I was trying to create Sandbox Apple Pay certificates I mistakenly created 2 for the production environment. Could I revoke them without any problems and create another ones ?
If you integrated Apple Pay on the WEB, I would highly appreciate any help, since I'm having such difficulty in simply setting up my testing environment.
Images - links:
https://i.stack.imgur.com/7aGer.png
https://i.stack.imgur.com/WEYPR.png
Thanks
|
|
|
|
|
Good moring
I'm starting to learn IoS developing.
I need to know if I can use Xcode v. 8.0 to an old 4S / 4 Apple Iphone. I have this old I phone version and I want to use the 8.0 release if Xcode. So is it possible to connect 4S / 4 I phone to this Xcode version?
Thanks
|
|
|
|
|
Does this help?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
how to remove notification in ios in my app ?
its always show 2 notification in ios but not show in Android.
I'm working in MVVM language C#.net
|
|
|
|
|
|
How are you saving notifications? Is this across all iOs versions?
|
|
|
|
|
Good evening
I have a question about Ios target. If we develope an application for Ios devices, using certain Xcode release (for example 4.4), can this application be installed in all I-phone versions? There are restrictions for Xcode version and I-phone?
Thank you.
|
|
|
|
|
How to execute itextsharp in unity for iOS pdf file generation?
|
|
|
|
|
|
I have a project that has all kinds of sensors collecting data and sending it to a raspberry pi which saves everything.
Now I want to make an interface to read that collected data in an easy and clear way. I was wondering if the iPhone is able to do this before getting too deep into building an app.
Could my iPhone app change the wifi network I'm connected to so that it could connect to the ad hoc network I have running from my pi? This way i can just hit a single button on my iPhone app (if I'm in range of the pi's network) and connect to that network, access the collected data and display it in a nice easy to ready way.
It'd be a great way to view my data, now I have to manually switch networks, type in IP addresses and it's a real pain. I'm hoping to build my app using ionic and angular. If anyone has any guidance I'm all ears!!
|
|
|
|
|
You want your application to perform a system-level change of network connection? I am not an Apple developer but as far as I know Apple leaves very little space for open developers to create these applications.
Following are a few threads where you can see how to detect the network changes, but how to apply these changes would be difficult.
How to check for an active Internet connection on iOS or OSX? - Stack Overflow[^]
c# - A Method with 2 Kind of Return Type - Stack Overflow[^]
Finally, if you just want to connect to the Raspberry Pi, why don't you connect it to the same network? Subnetting may help in this matter.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Hi Afzaal,
Thanks for the reply, I was afraid of that.
It's a unique situation for sure, my Raspberry pi is in the shed and away from any Ethernet or wifi connections.
Hmm, I'll have to think which is more convenient manually switching wifi networks and use the network check you provided the link for or getting a wifi extender for the pi and connecting the pi to my router.
I may try both. See what's easier.
Thanks!
|
|
|
|