« first day (1478 days earlier)      last day (1462 days later) » 

5:20 AM
Good morning all :)
 
6:16 AM
@Leena kyon si :-D
@Abizern, @ShobhakarTiwari Hi VRY GUDMRNG :-)
 
good morning
 
6:35 AM
Good noon @All
 
6:56 AM
Hello All,
I am facing one issue while passing. I have integrated Alamofire and SwiftyJson for json parsing. But Alamofire returns me the data is not in proper format but other api is working fine. I am passing Dictionary<String, AnyObject> as parameters. But this is not working in this api. Its dictionary contains dictionary,array and string etc. Can you please help me?
 
@NikunjJadav show me the response which u getting
 
Sure
 
Response is The data couldn’t be read because it isn’t in the correct format.
 
0
Q: Creating Funnel Chart in iOS?

Shobhakar TiwariNeed to create Custom control for Funnel Chart in iOS ( Either in Swift or Objective - C ) . Found Few library for it : here is link : https://github.com/ayudasystems/funnel Planning to use BezierPath to implement Funnel Chart . Kindly suggest the Data Structure which needs to implement this c...

@Leena
kindly upvote this question guyzzz
@pooja_1205 @Rinku @iApple @iShwar @BoominadhaPrakashM
@NikunjJadav its because u dint convert the response in correct format
 
7:07 AM
@ShobhakarTiwari Please see my request and response of alamofire wrapper class. gist.github.com/anonymous/6698fc40f2be33c069a7313237e7c1c7
 
upvoted @ShobhakarTiwari
 
@NikunjJadav : You can open this file >> ResponseSerialization.swift
 
@pooja_1205 thnks
 
And you'll find method JSONResponseSerializer
 
@Dhruv Ok then..?
 
7:10 AM
Just convert the validData to string and print the value of that string.
See what you get the log and provide the output here.
 
Ok, As of now, I m return the JSON but as per guidance convert JSON into JSONString right?
 
@NikunjJadav In the method, where you get the data in response
add a line >>
var dataString = String(data: data!, encoding: NSUTF8StringEncoding)
And print datastring
 
@Dhruv Okay Thanks
 
@ShobhakarTiwari: Done. I have upvoted
 
@ShobhakarTiwari what is your custom requirement for same?
 
7:19 AM
@BoominadhaPrakashM @NikunjJadav Hi.
 
@BoominadhaPrakashM thnks man
@sandy i want to create funnel chart , not want to use library
 
@ShobhakarTiwari Okay
 
@Dhruv Its return me HTML
 
Exactly, so you're not getting proper json.
See that html, you'd probably find error in that
 
Hi @Dipang
 
7:25 AM
Means its error from backend side?
right?
 
Hi. do you know swift? I have problem in search bar.. I need to call service after few times when user enter text in search bar.
 
@NikunjJadav If you can share that code (if not sensitive), I can see whats there and let you know
 
@BoominadhaPrakashM Have you see ?
 
@Dhruv means its error in code at my side?
 
@NikunjJadav No, talk with backend guys
you can mutually sort based on html. I'll be back in few mins.. lunch time
 
7:30 AM
@Dhruv Thanks
 
@Dipang use timer
 
I have used but not worked.
 
@Dipang wait m sharing u code
 
@Dipang show your code
 
@ShobhakarTiwari Thanks.
@BoominadhaPrakashM I will show u
 
7:35 AM
okay
 
use this
just replace searchUsingAPICAll this with ur web service method
 
@ShobhakarTiwari Can you sent me Txt file. Cos Our network has watch guard. So I can not see your links.
 
this method gets called in regular interval
m pasting code here
copy it then i wil delete okey
 
sure.
 
7:39 AM
Ya.
Thanks.
@BoominadhaPrakashM Thanks for your time
 
@Dipang :)
 
@BoominadhaPrakashM whr u from ?
 
From Madurai, Tamil Nadu.
 
@iApple very good noon
 
7:44 AM
You?
 
@BoominadhaPrakashM Delhi
 
@pooja_1205 in app screenshot solved or not !
 
@ShobhakarTiwari When Can I call test function?
 
@Dipang textdidchange
delegate
 
7:59 AM
ya. Wait Show My code.
Please is right ?
I put in textdid change in searchbar deleget method.
 
yea its rit
 
But it going crash.
 
just call this function test in textdidchange
show me crash report
1 message moved to friendly bin
 
-[__NSCFTimer copyWithZone:]: unrecognized selector sent to instance 0x7fce42af74c0
 
@Leena guide me data structure required for funnel chart
i shared my question link
need ur comment on it
@Dipang dont pass any param
 
8:04 AM
Okie
 
@ShobhakarTiwari great work. Thanks.
 
8:31 AM
@NikunjJadav Did it work ? I mean you got any relevant info from that HTML response ?
@Leena Hello
 
@ShobhakarTiwari done
 
0
Q: iPhone crash for feeding base64 to webview

Durai Amuthan.HI am using UIImagePickerController to choose image/video,upon selection I am converting the resource into base64 string and I am sending that to wkwebview NSData(contentsOfURL:(info[UIImagePickerControllerMediaURL] as? NSURL)!)?.base64EncodedDataWithOptions(NSDataBase64EncodingOptions.Encoding6...

 
8:59 AM
@DuraiAmuthan.H chk my commment
 
@ShobhakarTiwari yes that solved
 
Hi all,
I have to make a network call every 20 seconds in my application no matter in which screen the user is. Is it suggested to use NSTimer for this? If yes, where do I put this code snippet?
Is there any other way to do it?
 
@VamshiKrishna appdelegate
 
did finish launching?
 
9:11 AM
yea
 
ok.will try and see
thanks
 
@VamshiKrishna This is going to be very power intensive.
 
I am actually working on a SDK which if any app integrates it, i should make a server call like every 60 seconds with some data
like mixpanel, localytics do
 
NSTimer is probably not a good solution.
 
any other ways?
 
9:15 AM
Use a GCD Timer.
 
to build that in SDK
not in a regular app
 
Doesn't sit on the run loop, better handling for drift, doesn't keep a strong reference to the callback object.
 
any sample for objective c?
 
@VamshiKrishna Is the Swift code that hard to read?
 
@Abizern xcode copied from other mac will work on other mac or other folder need to copy as well ?
 
9:23 AM
@ShobhakarTiwari Just copying Xcode usually works
 
There is no installer, when you download it from the web you just open the dmg and copy the application. It does the setup it needs when it starts up.
 
@Abizern ok . Thanks ,
4
Q: Creating Funnel Chart in iOS?

Shobhakar TiwariNeed to create Custom control for Funnel Chart in iOS ( Either in Swift or Objective - C ) . Found Few library for it : here is link : https://github.com/ayudasystems/funnel Planning to use BezierPath to implement Funnel Chart . Kindly suggest the Data Structure which needs to implement this c...

wat data structure need to use for this
any suggestion
 
Hello Everyone,
How to view coredata files - any software or application
 
41
A: How view data stored in Core Data?

gerry3Once your app has run in the simulator and created the persistant store file, you can find the file in your app's Documents directory. Your app will be folder inside (~ is your home directory): ~/Library/Application Support/iPhone Simulator/User/Applications/ I sort by "Date Modified" to find t...

 
10:13 AM
@Dhruv exception_message\">zero-length keys are not allowed, did you use $ with double quotes?
 
@NikunjJadav Did you try sorting it out with Backend guys ?
 
@Dhruv they told me that its working fine in Android.
@Dhruv Do you want to see HTML Response?
 
Yeah show that @NikunjJadav
 
Also confirm what the format, as you're using Json, try changing the request to .URL or something.
 
10:18 AM
means in my code or backend side?
content-type?
 
Not getting from HTML file what can be the issue.
Try executing in rest client.
 
means execute the request in rest client/
?
@Dhruv I think its accept the json string like this gist.github.com/anonymous/23a3ebee1ccaa8a50c6531ec3893af14
@Dhruv I set manually in rest client
@Dhruv As per my understanding alamofire automatically convert internally dictionary into json string
 
10:35 AM
yeah it does, I mean you need to dig a bit more to track whats exactly breaking in your request.
Compare with Android as you said it working for them.
 
Hello how to get dates between two dates ... Start date and end date
 
@Dhruv I already 2 hours with debugging alamofire can't convert this dictionary into json string.
@Dhruv this dictionary contains dictionary, array and string as well.
@Dhruv its AppDelegate Dictionary to store the local data at the end step.
 
11
A: Swift: Print all dates between two NSDate()

Martin RJust add one day unit to the date until it reaches the current date (Swift 2 code): var date = startDateNSDate // first date let endDate = NSDate() // last date // Formatter for printing the date, adjust it according to your needs: let fmt = NSDateFormatter() fmt.dateFormat = "dd/MM/yyyy" // W...

 
@Dhruv let params : Dictionary<String,AnyObject> and pass this params in Alamofire request
 
I don't think Dictionary<String,AnyObject> lasted any longer than Swift 1.0. We've been using [String : AnyObject] ever since.
 
10:47 AM
@Abizern I am working with Swift 2.2 version so you mean to say I should to use [String : AnyObject]
Right?
 
It's the modern way of declaring a dictionary's type
 
thanks but when I use this let params : Dictionary[String:AnyObject] = [Constant.SECRETKEY:Constant.SECRETVALUE] its return me error
 
@NikunjJadav first print [Constant.SECRETKEY:Constant.SECRETVALUE]
wat exactly it prints
may be its an array or string
make sure before storing value
 
Its a constant key value string
 
show here
then u should decalare like [String:String]
 
10:53 AM
static let SECRETKEY = "secret_key"
static let SECRETVALUE = "18qt6AAv2EuYN1PPi"
 
decalare dictionary as above
[String:String]
 
But I want [String:AnyObject] bcoz I need to pass the appdelegate dictionary as well
let params : Dictionary[String:AnyObject] = [Constant.SECRETKEY:Constant.SECRETVALUE,"":AppDelegate().sharedInstance().dict]
 
var params = [String : AnyObject]()
Initialise it like this and then try to add one by one
 
thanks let me do it this way
params = [Constant.SECRETKEY:Constant.SECRETVALUE,"":AppDelegate().sharedInstance().dict]
this is correct assignment right?
 
AppDelegate().sharedInstance().dict What's this supposed to be?
And an empty string as a key?
 
11:02 AM
Exactly..
 
Used AppDelegate().sharedInstance().dict to store the values because its long process for user registration
And In the last api, have to pass in body parameters with secret key with values and appdelegate dictionary with empty key
 
but you're creating a new instance of your AppDelegate and then calling what looks like a singleton initialiser on it. Not that I agree with putting too much responsibility into an AppDelegate, but you can already get your current app delegate with UIApplication.sharedApplication.delegate
 
Same HTML Response :(
 
And use NSURLQueryItem to create query parameters and build them into a proper URL with NSURLComponents
Try using a REST client to make your request so you can see if the problem is really with the request, or the way your code creates them.
 
@Abizern any suggestion for creating funnel chart in swift ?
 
11:15 AM
@ShobhakarTiwari Broad question.
 
@Abizern i want to create funnel chart in swift , wat data structre i should use , bezier path wil be goood choice or should i go with openGL
 
@Abizern Without NSURLQueryItem. Is there any other easiest way?
 
11:33 AM
@Dhruv Any idea for this?
 
@ShobhakarTiwari I'd stick with bezier paths for two-dimensional drawing.
@NikunjJadav What's so difficult about it?
 
But will work in POST request with Alamofire?
 
Oh God, you're using that? I can't help you with it.
 
@NikunjJadav It's the simplest way, to create params and pass it to alamofire.
Did you try executing it in rest client ?
Or for a while, try making a sample code and execute it using NSURLSession.
 
Yes, tested in rest client but its only accept json string
This is the proper way or not. let params : Dictionary[String:AnyObject] = [Constant.SECRETKEY:Constant.SECRETVALUE,"":AppDelegate().sharedInstance().dict]
and pass this params in Alamofire
What is your suggesstions?
 
11:47 AM
How can your key be blank ?
You should probably have a format of what kind of data is required in backend ..
 
So with empty key I can't do it?
 
Thats something next to impossible ...
 
Ok
Ignore all this
For example: AppDelegate().sharedInstance().dict. I want to dictionary into json
How can I do it?
 
posted on August 26, 2016 by Johann

VHUD is an open source UI component from Airin for creating loading indicators with slick styling similar to native iOS HUD components. VHUD allows you to customize the coloring, and style of the indicator, and the loading and completion text. You can also blur or color the background when the indicator is shown. This image […]

 
12:23 PM
@NikunjJadav NSJSONSerialization
 
Thanks Abizern
@Dhruv @Abizern Thanks for support and help :)
 
12:40 PM
@ShobhakarTiwari thanks dear
 
I have button image size in iphone 5s is 1@x 60x60, 2@x 120x120 @3x 180x180
will it change automatically in iPhone6s plus? because iPhone 6s plus button size is big than iphone 5s
@Abizern
 
@VijayakumarNL Are you using xcassets?
 
@Abizern No using code
 
@VijayakumarNL Okay. Why is there an @3x sized image in your list?
 
i am doing all the stuff by programmatically
for iphone 6s plus device
 
12:48 PM
@VijayakumarNL Okay. What's your question?
 
how the image size are we need to design iphone 5s as well iphone 6s plus devices
 
@VijayakumarNL you already have a @3x sized image.
 
yes I have but will it take and resized dynamically in iphone 6s plus device?
 
@VijayakumarNL Do you worry about whether the iPhone6 uses a @2x sized image instead of a @1x sized one?
 
@Abizern No i have tested that image view frame doesn't change on iphone 6s plus devices same frame which was there in iphone 5s devices
 
12:57 PM
@VijayakumarNL Then why are you worrying about whether the @3x version will be used instead of the @2x version?
 
thanks some what ok
 
I've a tabbed based app, and on first tab, I'm executing a web service call and sometimes if I navigate to other tab before response is received, I don't get the response.
PS: I've used alamofire for that
 
1:24 PM
@Dhruv I that other tab also are you calling any web service
?
 
 
4 hours later…
5:05 PM
posted on August 26, 2016

iOS 10 beta 8 (14A5346a) Now Available

posted on August 26, 2016

tvOS 10 beta 7 (14T5329a) Now Available

 
5:48 PM
@Abizern okey
let me try this
@Dhruv its because web service call in different tab
 

« first day (1478 days earlier)      last day (1462 days later) »