ios - show alertview after progressbar done -


i have app upload images server.image uploading server , progressbar working.but want show alertview after progressbar done... here code progressbar.

- (void)connection:(nsurlconnection *)connection didsendbodydata:(nsinteger)byteswritten totalbyteswritten:(nsinteger)totalbyteswritten totalbytesexpectedtowrite:(nsinteger)totalbytesexpectedtowrite {      float progress = [[nsnumber numberwithinteger:totalbyteswritten] floatvalue];      float total = [[nsnumber numberwithinteger: totalbytesexpectedtowrite] floatvalue];      progress_bar.progress = progress/total;      nslog(@"%f",progress/total); } 

so question how show alertview after progressbar 100%.

try this..

- (void)connection:(nsurlconnection *)connection didsendbodydata:(nsinteger)byteswritten totalbyteswritten:(nsinteger)totalbyteswritten totalbytesexpectedtowrite:(nsinteger)totalbytesexpectedtowrite {      float progress = [[nsnumber numberwithinteger:totalbyteswritten] floatvalue];      float total = [[nsnumber numberwithinteger: totalbytesexpectedtowrite] floatvalue];       float actualprogress = progress/total;        if (actualprogress == 1.0){          //showalert      }      progress_bar.progress = actualprogress;      nslog(@"%f",progress/total); } 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -