« first day (1556 days earlier)      last day (2427 days later) » 
03:00 - 11:0011:00 - 17:00

11:01 AM
ok checking
 
@DilipTiwari one more thing, from your code
let dictValue = arrayDealPage[indexPath.row] as! NSDictionary
let name = dictValue.object(forKey: "phone") as! String
avoid force casting, as it may lead to crashes.
 
ok @Dhruv checking
@Dhruv these two lines is there any problem
 
Hi guys somebody some experience with silent data notifications ?
 
@Dhruv not getting image
 
Post your URL what you are getting ? @DilipTiwari
 
11:12 AM
ok @Dhiru checking
 
@DilipTiwari can you also check cell.imageView.sd_setImage()
 
ok pls wait
 
jaldi :P
 
ok
@Dhruv how will i get my whole url into this code
because for single url now it is showing the image
 
11:33 AM
cell.backgroundImage.sd_setImage(with: URL(string: URL.App_URL), placeholderImage: UIImage(named: "placeholder.png")) i am getting error
@Dhruv?
 
what error ?
 
URL
@Dhruv
with: URL @Dhruv
because i have a url saved on NSObject Class
 
NSLog bro 😬
 
(string: URL.App_URL) , in this URL is object of url saved NSObject class
 
show some more code :?
 
11:43 AM
ok pls wait
 
You can print URL using NSLog
 
var URL : URL_Links = URL_Links()
this code is in NSObject Class where App_URL is saved .
@Dhiru
 
why you doing all this ?
just take a simple var and assign your url in it
 
actually i have only one url for all pages of app
it is showing error "cannot call value of non-function type "URL_Links"
@Dhruv
i have also written this code
below
var App_URL : String = "https://pukkading.com/mobile_app/iosapp.php"

cell.backgroundImage.sd_setImage(with: URL(string: App_URL), placeholderImage: UIImage(named: "placeholder.png"))
but in this also same error
@Dhruv?tell bro
 
:/
you check URL first
its for some php page
 
11:52 AM
yes
 
like, try to figure it out before coding
 
i have checked url
 
your url should be something different
@RituNagpal
 
actually app url is this
and url for "image" key is different
i am getting json response properly
 
and what you getting in that image ?
 
11:54 AM
empty
showing
console is printing but not showing on image
i have checked connection also it is properly connected to cellidentifier
import Foundation
import UIKit
import CoreData
class URL_Links: NSObject {
var App_URL : String = "https://pukkading.com/mobile_app/iosapp.php"
var Register : String = "register.php"
}

var URL : URL_Links = URL_Links()
this is my NSObject class from where i am getting the url
 
:/
kya hain ye
 
main apko code post krta hu sara jha se json aarha hai and tableview cell ki coding @Dhruv?
 
😁😂
 
nahi wait,just show me what you getting in image key in json
 
image = "https://pukkading.com/wp-content/uploads/job-manager-uploads/featured_image/201‌​6/04/ground-1.jpg";
but i have multiple images on json
@Dhruv
 
12:00 PM
404 Not Found
 
image = "https://pukkading.com/wp-content/uploads/job-manager-uploads/featured_image/201‌​6/04/ground-1.jpg";
 
just pass this url
nothing else
 
single image url is working but not all image
 
cell.backgroundImage.sd_setImage(with: URL(string: "https://pukkading.com/wp-content/uploads/job-manager-uploads/featured_image/201‌​‌​6/04/ground-1.jpg"), placeholderImage: UIImage(named: "placeholder.png"))
 
this is working but for single url not for multiple url
@Dhiru
@Dhruv
 
12:03 PM
What you want , it should Show All Images .....atfter time Interval ,,,automatic ?
 
{
"name": "Maria at Prima Moda",
"address": "3 princes parade Potters Bar England EN6",
"phone": "07961311099",
"offer": "30% OFF",
"image": "https://pukkading.com/wp-content/uploads/job-manager-uploads/gallery_images/2017/01/2017-01-06_13-16-57.jpg",
"rating": ""
},
{
"name": "GMTEC Plant Hire",
"address": "24 Roxburn Way Ruislip Greater London ",
"phone": "01707 331793",
"offer": "10% OFF",
"image": "https://pukkading.com/wp-content/uploads/job-manager-uploads/featured_image/2016/04/plant.jpg",
this is your response right ?
@DilipTiwari
 
yes @Dhruv
 
now share your code of cellforrow
 
12:06 PM
don't know what you've implemented
 
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

let cell = tableView.dequeueReusableCell(withIdentifier: "cellidentifier",
for: indexPath) as! DealsPageCell

let dictValue = arrayDealPage[indexPath.row] as! NSDictionary
let name = dictValue.object(forKey: "phone") as! String
print(name)
cell.lblContact.text = name//[""] as? String

let backgroundPicture = dictValue.object(forKey: "image") as! String
print(backgroundPicture)
cell.backgroundImage.image = UIImage(named: backgroundPicture)
 
cell.backgroundImage.image = UIImage(named: backgroundPicture)
remove this line
 
DispatchQueue.main.async { remove this as well
not needed
and in place of URL.App_URL write backgroundPicture
cell.backgroundImage.sd_setImage(with: URL(string: backgroundPicture), placeholderImage: UIImage(named: "placeholder.png"))
just write like this
 
cell.backgroundImage.sd_setImage(with: URL(string: backgroundPicture), placeholderImage: UIImage(named: "placeholder.png")) this code gives error
 
12:10 PM
:/
what
 
error "cannot call value of non-function type "URL_Links"
this i think giving error for above class of NSObject because variable name is URL
 
but you removed that line
right ?
 
can you show your updated code for cellforrow now
in pastebin
 
ok wait
@Dhruv
 
12:12 PM
@nyconing
@DilipTiwari it'd work
 
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

let cell = tableView.dequeueReusableCell(withIdentifier: "cellidentifier",
for: indexPath) as! DealsPageCell

let dictValue = arrayDealPage[indexPath.row] as! NSDictionary
let name = dictValue.object(forKey: "phone") as! String
print(name)
cell.lblContact.text = name//[""] as? String

let backgroundPicture = dictValue.object(forKey: "image") as! String
print(backgroundPicture)

cell.backgroundImage.sd_setImage(with: URL(string: backgroundPicture), placeholderImage: UIImage(named: "placeholder.p
@Dhruv
 
are, I saw the code
and said that it should work
 
@Dhruv i am getting the value on "cell.lblContact.text = name" but not for this let backgroundPicture = dictValue.object(forKey: "image") as! String
 
@DilipTiwari you send ur code to @Dhruv he will do it
 
:?
@Dory code seems proper
 
12:15 PM
:?
@Dhruv then what is issue
 
@Dhruv i already told that i have a class of nsobject on which app url is saved for all pages
import Foundation
import UIKit
import CoreData
class URL_Links: NSObject {
var App_URL : String = "https://pukkading.com/mobile_app/iosapp.php"
var Register : String = "register.php"
}

var URL : URL_Links = URL_Links()
this is my NSObject class from where i am getting the url
 
but dude, you don't need that url here
because , you're already getting whole URL in response
 
i guess parsing is not done proper ?
 
@Dhruv tell me how i will resolve this
 
😨
 
12:17 PM
yes
 
because he is getting name and not picture url
 
but it is not downloading
i have checked single url it is working
 
are you getting picture url in cellForRowAt can u print it
 
yes @Dory i am getting images and als printed on console
but not showing on imageview inside tableviewcell
 
oky but they are not getting set in image view
 
12:18 PM
the pic is very large
maybe its taking time to download
"https://pukkading.com/wp-content/uploads/job-manager-uploads/featured_image/201‌​6/04/plant.jpg"
see the url
 
@Dhruv is that code proper.. for setting url
can u change some public image url n check there @DilipTiwari
 
yeah
@Dory did you check image..
its big big
 
i didnt check code.. but image is too big
 
but it will display i think
 
exactly, and if network is low
it'll take time
 
12:21 PM
network is proper
 
can u try some other public iamge url n try
 
yeah give some static image
okay do one thing
 
@Dhruv yes dhruv
 
let backgroundPicture = "https://pukkading.com/wp-content/uploads/job-manager-uploads/featured_image/201‌​‌​6/04/plant.jpg"
assign static image like this
and comment this line
let backgroundPicture = dictValue.object(forKey: "image") as! String
see what happens
 
ok pls wait
 
12:24 PM
@Dhruv i dont know abut sd_setImage , i download iamge n then set to image view
 
really ?
 
:P
 
I mean, this library is good for caching and all
 
m nt ios dev
 
so we don't have to manage everytime :P
 
12:25 PM
now i am shifted to android :/
cocktail !!!
 
@Dory @Dhruv i resolved my issue
cell.backgroundImage.sd_setImage(with: NSURL(string: backgroundPicture) as URL?, placeholderImage: UIImage(named: "placeholder.png"))
by writing this code
 
grt @DilipTiwari
 
thanks @Dory
 
cool
 
@Dhruv but if crashes after sometime and one image not loaded @Dhruv
 
12:32 PM
crash logs ?
 
soory i think i have called didselectmethod in which there is no code that why it crashed
 
oky
 
no
as I said, you're doing force unwrapping
maybe thats why its crashing
 
@Dhruv now it is not crashing
 
what you did ?
 
12:39 PM
one thing more 2-3 images still not uploaded and it has been 4-5 min.
 
too big images
 
@Dhruv actually i have clicked on cell and then i think it crashed
 
oh okay
now that your images are cached
it won't take time next time
 
@Dory but network speed is good still it is taking so much time how to resolve this
 
ask dhurv
no idea of thi api
 
12:41 PM
@Dhruv ?
 
@Dhruv
 
are your image is so large
 
@Dhruv @Dhruv
@Dhruv @Dhruv @Dhruv
@Dhruv @Dhruv @Dhruv @Dhruv
 
lol
 
@Dhruv @Dhruv @Dhruv @Dhruv @Dhruv
/annoy @Dhruv
 
12:42 PM
@Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory @Dory
 
/awake @Kamini
 
bandd
 
wheres everyone else @Dory ?
 
light gone few times
 
one of them came :P
 
12:43 PM
@Dhruv your everyone means one person :P
 
@Dory now don't say who
;)
 
i will
:P
 
:/
@Dory app published ?
 
@Dory tell
 
no ree..
bye
 
1:18 PM
@dory tell
/hangman
/awake @Kamini
hmmm
tu ruk @Shubhank
 
lol
 
1:32 PM
@Shubhank hello bro
 
2:08 PM
hello
 
2:20 PM
hello
?
@Shubhank
 
?
 
when list show then its UI is perfect but when i scroll then little bit padding is automatically added
first time display like this imgur.com/a/oVaCu
 
which padding
 
when i scroll then its look like this imgur.com/a/fGF2Z
i am using same layout and adapter for both then also its happen
is it other way so i can achieve this type of layout ?
?
 
where is the padding
still not visible
 
2:36 PM
in second layout line @Shubhank
at bottom
see this image imgur.com/a/fGF2Z
 
 
1 hour later…
3:49 PM
Can someone have a look at this? stackoverflow.com/questions/44725372/…
@Shubhank @RicardoAlves
 
4:07 PM
@BugsBuggy can't help you there mate, sry
 
03:00 - 11:0011:00 - 17:00

« first day (1556 days earlier)      last day (2427 days later) »