« first day (1626 days earlier)      last day (1314 days later) » 

08:11
posted on January 21, 2017 by Johann

FAQView is an open source Swift based interface component from Mukesh Thawani allowing you to easily implement a FAQ view on iOS. FAQView is written in Swift, and based on UIView. Question cells expand on press to show content. You can customize the titles, cand colors and there is automatic formatting of links, and phonenumbers […]

 
2 hours later…
09:49
Hi all any one have worked on music app ?? i have issue right now am working on music app
@IOS_PROGRAMMER ?
say
yea am able to play the songs properly from url using avaudio player and when i clcik on next song it takes time to load
how to make it load fast for next song
@IOS_PROGRAMMER you should load in bakground
what should i load song from url???
10:03
@IOS_PROGRAMMER yes
@Jagdeep hello
whenever i am trying to import "myProject-swift.h" for using swift file in obj C. i am getting error on one extension of "Expected selector for obj c method"
any suggestions from you guys
@Jagdeep for this u need to change something in project setting
chk this
@ShobhakarTiwari you have any lines of code
i am using extension of UIColor for color scheme in my app
5
A: xcode Expected Selector for objective-c method and Missing @end errors

Yannis P.This was one of the most frustrating and silly errors I've seen. I just cut and then pasted back in the code and the errors disappeared :S

10:07
this didnt worked for me
10:20
@IOS_PROGRAMMER nope
 
2 hours later…
12:01
hey all
Hi
Guys, what is the best way to store data that will never change. For example: list of all elements.
Is it good idea to store it in the plist ?
 
2 hours later…
13:57
-1
Q: Can I create english and hijri calendar?

Ronak AdesharaHello guys can i create this type of calendar in iOS. it’s display a English calendar & Hijri calendar (Islamic calendar) if it’s possible and have any link then please post here... +1 Appreciated This is the reference Application in Android https://github.com/sahaab/HijriCalendar-master

 
1 hour later…
15:10
Hello
Need help with timer
swift 3
sure what happend
I have scheduled local notifications
when it fires, the user clicks on it and the app opens
now i want to fire a particular function after some time from the current time, or fire it on a specific time
but the problem is, it is firing as soon as the app opens
@bhakti123 so u want timer should fire after couple of seconds like that ??
how did u set timer ?
15:18
No, I want the timer to fire at a specific time'
let timer = Timer(fireAt: wd!.addingTimeInterval(-30), interval: 0, target: self, selector: #selector(countStep(_:)), userInfo: ["fd" : date, "td" : wd!, "msg" : msg, "nid" : nid], repeats: false)
RunLoop.main.add(timer, forMode: RunLoopMode.commonModes)
var queue = DispatchQueue.global(qos: .default)
queue.async(execute: {() -> Void in
var delayInSeconds: Double = 0.2
var popTime = DispatchTime.now() + Double(delayInSeconds * Double(NSEC_PER_SEC))
DispatchQueue.main.asyncAfter(deadline: popTime / Double(NSEC_PER_SEC), execute: {(_: Void) -> Void in
self.doTimer()
})
})


func doTimer()-> Void{


}
u could try something like this i did not tested this code just try
ok. But if i want to run at a specific time then ?
timer should fire only once or should repeat??
if u set required time here var delayInSeconds: Double = 0.2
it will fire at that time right if u want timer should fire at the particular time
timer = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: #selector(self.updatetimerMehod(_ :)), userInfo: nil, repeats: false)
@bhakti123 ??
15:37
i tried with the previous one
it says error for popTime / Double(NSEC_PER_SEC)
binary operator / cannot be applied for double and dispatchtype
i calculated the time interval between the set time and current time
and set that as the delayinseconds
try second one and set the time simple one
timer = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: #selector(self.updatetimerMehod(_ :)), userInfo: nil, repeats: false)
where are you setting the time here?
timeInterval: 0.1 this one will not work???
if we set the required delay time here
20
Q: How to program a delay in Swift 3

owlswipeIn earlier versions of Swift, one could create a delay with the following code: let time = dispatch_time(dispatch_time_t(DISPATCH_TIME_NOW), 4 * Int64(NSEC_PER_SEC)) dispatch_after(time, dispatch_get_main_queue()) { //put your code which should be executed with a delay here } But now, in S...

check this link it may help u
???
15:54
Hi guys
hi dude
@bhakti123 done??
@IOS_PROGRAMMER No, I am getting confused
16:41
let when = DispatchTime.now() + seconds // change 2 to desired number of seconds
DispatchQueue.main.asyncAfter(deadline: when) {
i am using this
but it is still firing at the same time
17:03
ohhh
 
1 hour later…
18:20
anyone online ?
Nice. So I need help. What is the best way to store data that will never be changed like chemical elements ?
Yes. Is it OK if I store it in plist? Cuz saw someone doing it.
whats ur requirement what kind of data u like to save?
it depends
18:29
@Phyber if it is static and data size in KB then plist is good idea ( but not better from my point of view) use coredata instead ( it could be updated with new if u require in future)
yes core data is good choice always
@bhakti123 ur issue solved or not?
@ShobhakarTiwari i have a issue
@IOS_PROGRAMMER yea say
I need to store something like this: car1, blue, 13000$
18:32
am working on a music app and audio file url is .mpeg and not playing with avplayer and avaudioplayer
@Phyber no issue with that create entity and add attribute , if its not large data then u can stick with plist
@IOS_PROGRAMMER is it streaming ?
yea online
like saavan
coz the app which am working on is already live in andriod and building in ios and file format is not supporting i guess u have any idea
@IOS_PROGRAMMER did u added NSAppTransportSecurity key into info.plist
yes when i tried with sample mp3 urls its working great
@IOS_PROGRAMMER check avplayer framework supporting audio format
i think it should support this
18:37
i checked it not playing bro
any error?
nw_endpoint_flow_protocol_disconnected [9.1 104.28.4.66:80 cancelled socket-flow (null)] Output protocol disconnected
nw_endpoint_handler_cancel [9.2 104.28.5.66:80 initial path (null)]
18:54
let me chk
u have any sample music code file bro
@IOS_PROGRAMMER no code
let me chk from my end
it wil play
did u check?/
with avaudio player it playing but need to download from url and then play but mp3 its directly playing
so when i click on next song taking long time to play
19:10
is it good one?

« first day (1626 days earlier)      last day (1314 days later) »