last day (2941 days later) » 

1:05 PM
yar ku6 bhi ho jaaye ek bat to manani padegi ki hamare jate hi rum ki haalat MUTE*
ho jati he
 
:-)
 
@DimplePanchal @Leena
kya samje ??
 
hindi ...... ????
 
india won another bronze medal
@Jerry we dnt have free time like you :D
 
hahaha
work ko manag karna sikho frndss ke sath
@DimplePanchal to fir se bye bolne aaya hu me tum kaha ho ??
 
1:07 PM
Mary Kom
 
aree oopss fir se sory yar @VakulSaini
 
@Jerry BYE
 
:-)
 
yup
 
:D
to tumhara is pe kya khayal he ? @DimplePanchal
jo bhi ho @Leena ko convey kar denaa now going finally
:)
 
1:10 PM
byee @Jerry
 
@Jerry kis chiz k bare me ?
 
@DimplePanchal Ignore kar Ignore kar :P
 
@Leena Ignored :P
@Jerry
mast msg.. mast mail :P
 
:)
 
1:18 PM
:)
 
is there any way to select text on a pdf in ios ?
 
convert it in to data
 
if there's any way to do it with either a webview or CG/Quartz. I'm interested
how ?
any url ?
or example ?
 
select text on pdf???
 
where is your pdf file on server or in your project ?
@lalith
 
1:23 PM
downloaded the pdf and stored in disk
now need to load it
I have looked a few sources which uses CG/Quartz
 
Drop that file in your project
then use this
NSData *data = [NSData dataWithContentsOfFile:@"yourfileName.pdf"];
 
but cannot get the text to select..!
oh okay will try
 
selected ???
nope
 
I want to enable users to select the text
 
I'm telling about get whole text from pdf
 
1:25 PM
in the pdf
 
lol
 
and copy/paste or whatever.
 
first try to open pdf in your project
in your app
 
already have opened it
 
in webview??
 
1:26 PM
yeah using the following code..!
 
i think there is a function which automatically copy text in iphone
 
NSURL *targetURL = [NSURL URLWithString:@"http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIWebView_Class/UIWebView_Class.pdf"];
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[pdfWebView loadRequest:request];

[self.view addSubview:pdfWebView];
[pdfWebView release];
no I have to do the select using javascript I guess...!!
NSString *selection = [pdfWebView stringByEvaluatingJavaScriptFromString:@"window.getSelection().toString()"];
 
Yes you can use javascript
 
I'm now struck with this pdf as its not getting the selection.
I'm using this CGScanner
but not able to progress...!!
 
@lalith - There is no guarantee in pdf the text is really text or image
 
1:30 PM
huh lol
CGScanner can scan the pdf
 
what if the text written on image
 
for getting text
Its not about the edge cases..!
if its apple documents loaded as pdf
 
I'm asking are you sure the pdf file contains only text ?
 
have you seen this
@lalith
 
i'm searching regarding your problem
 
1:32 PM
@VakulSaini hello Vakul
i need you help
 
@Japa - hello
 
Yo guys, I have a quad and a polygon which deformes upper border of the quad. Now I want to process result texture in shader. How to make transparent rest part of quad under the polygon line?
 
BYE ALL
 
@DimplePanchal - Bye
 
bye @DimplePanchal
 
1:33 PM
in wich method should i get the texfields data? in cellForRowAtIndexPath ? or textFieldDidEndEditing?
 
textFieldDidEndEditing
 
yes
with one is best?
 
*with = which
 
wich one is best?
:D
 
1:34 PM
@VakulSaini vakul?
 
cellForRowAtIndexPath: is totally wrong
you can not get it here
 
yes but i get index path in that method
 
You add your textFields in this method not getting the text
 
@Japa i wud suggesst to create an array of data for your textfields
 
@Leena yes but that array in textFieldDidEndEditing?
 
1:36 PM
@Japa - You want to get all textfields data or any particular ?
 
all...i have 6 texfields in each cell
 
yes add text of the textfield in the array in textfielddidEndEditing
 
but texfields have tag
apple says: - (void)textFieldDidEndEditing:(UITextField *)textField {
if ([textField.text isEqualToString:@""])
return;

switch (textField.tag) {
case NameFieldTag:
[thePerson setObject:textField.text forKey:MyAppPersonNameKey];
break;
case EmailFieldTag:
[thePerson setObject:textField.text forKey:MyAppPersonEmailKey];
break;
case SSNFieldTag:
[thePerson setObject:textField.text forKey:MyAppPersonSSNKey];
break;
default:
break;
}
}
 
@Leena - I think this is not correct ... what if the user enter text again ....?
 
i have tag in texfields....i don´t have defines like apple says...
 
1:39 PM
hmm @VakulSaini
 
@Japa - Your question is not clear enough. Is there any action after which the user cant enter again ?
@Leena - :)
 
the texfields are going to receive int´s or float´s, the user MAY want to enter text again
 
@Japa - Exactly ..... I'm not getting you logics what are you trying to do
something is wrong here
*you = your
 
@VakulSaini i have a uitableviewcell with 6 texfields....the user enters values (numbers), and i want to get those values....
 
You should have one condition after this the user cant enter again ..... How do you know that the user has finished their work ?
Do you have any button ?
like finish, save text
etc
 
1:44 PM
i know because the user presses enter in the keyboard (-(BOOL)textFieldShouldReturn)
 
but that is for return keyBoard
user can write again
one thing is possible in your case
but you should have a sharp logic for this
listen
 
i use -(BOOL)textFieldShouldReturn only for return...and them i want to use textfielddidEndEditing.....am i wrong?
 
every time when the user press on return key
you can get the textField text
and merge the string each time
@Japa - But you have many textfields not one
How will you distinguish all ?
 
with tag´s
 
Then you will need a loop
as i said
you
2 hours ago
@Japa - You want to get all textField's data. So you cant get it in single line.
You definitely need a loop.
 
1:50 PM
byeee
 
@Leena - going ?
lol gone
 
@VakulSaini let me see if i understand something.....1 - the user presses the texfield and enters a value and presses enter (textFieldShouldReturn) 2- the value inside THAT texfield goes to a string in textfielddidEndEditing.....and then he repeats the same thing for the others texfields...i think i´m not understanding something...
 
bye bye (be lated)
 
i will create many string in textfielddidEndEditing for each texfield...correct?
 
@Japa - Yes you can get ...... but what if the user enter text in same textField again
then ?
 
1:52 PM
the old value is not substitute for the new value? i can´t do this?
 
in this case you will lose your previous string
you can do this .... now try to understand
 
i´m sorry, i didn't know about that part...
:(
 
first make an array
 
where?? in textfielddidEndEditing?
 
nope
in your viewDidLoad method
 
1:53 PM
?
ok
 
a global array
 
ok ...
 
which you can use at anywhere
 
great, and then?
 
add empty string
in that array
how much is your textField
see if you have 50 textField then add 50 empty string to it
 
1:56 PM
how much?
ohhh ok...ok...
 
for(int i=0; i<50; i++)
 
ok..
 
[array addObject:@""];
{
}
then this means your all textField are empty
in strating
right ?
now in textFieldDidEneEditing: method
get string each time
like this
NSString *str = txtFld.text;
then merge it with same index of array which is of your textField in tableView
if your textField is 15th
the merge that string on 15th index of array
are you getting me ?
@Japa
gone ???
 
i´m here...
 
You got it what i said ?
 
2:01 PM
i was reading what you were writing
 
okay ... let me know when you finished
??
@Japa
 
just a minute...
ok so: 1- i create an array for each tableviewcell that i have, 2- each array will have has many empty string as each texfields, 3- in textFieldDidEneEditing i create again strings that will receive the values of each texfield....BUT! how can i distinguish each textfield here? the apple example uses "defines" and i have tag´s....
 
you can get your textfields via tags?
cant you ?
 
yes...
 
then
 
2:06 PM
each textfield has a tag...i´m doing that in IB
 
then you can get the position of textFields
@Japa - I will tell you tomorrow. I will have to make a sample code for you.
till then try it yourself
okay ?
 
ok...sorry for taking so long to understand...
 
no problem
 
and thanks for teaching me...ok?
 
I'm not a good teacher
:-)
as well
 
2:09 PM
but you are helping me ....and for that thank you.
 
It may be my fault.... I'm unable to describe :-(
welcome @Japa
 
i will be here tomorrow and i will try until then....i only ask when i´m not capable...
i don´t ask just to copy...
i don´t agree with that...
 
okay
good
 
i will be here tomorrow ( portugal time 9 am)
 
its 7:41Pm here
 
2:11 PM
WHAT?!?!?! were are you from?
 
INDIA
I'm INDIAN
 
:) some day i will accomplish one of my dreams i go see the taj mahal..
 
great
 
and the rajastan
 
!
Rajasthan is awesome
 
2:13 PM
i believe that very well...
 
You will find it good
great place
Describe the INDIANs History
*INDIANs = INDIA's
 
I think i would like to go to goa also, because of my people history as well. Well...thanks again....i´m going to try the code and i will get back to you again tomorrow
be well vakul
bye bye
 
bye bye
one more thing
@japa
 
yes
 
okay leave it
I just want to know
 
2:16 PM
what?
 
do you any button
on which click you will save all text
what is your last action on that view ?
 
i WILL have a save button in the end of the tableview...( at least i would like that)
 
okay
fine
 
my tableview is dynamic...
i have the commit editing style..
 
But you have number of textFields
doesn't matter if it is dynamic
 
2:17 PM
that´s why i tag all the texfield...they will always have the same tag but in different sections
 
dont give the same tag
give different
 
?
 
always
 
i mean
 
you make a view with tag
so same tag will messed each other
 
2:19 PM
i mean: 1,2,3,4,5,6 in in-depth.section 0.....but in indepath.section 1... 7,8,9,10,11 ...you understand?
*in-depth = indexpath
 
you also have section ?
or simple tableView ?
 
itºs a dynamic tableview with 6 sections ... but it´s not a single view app
 
you have 6 textField in each cell
 
it´s a master detail app
yes
 
I'm getting confuse now
 
2:21 PM
why?
 
and how mush section you have ?
*mush = much
 
ok...let me explain...
 
okay
*do
you have 6 section - and how much cell in each section ?
or you have 0 section you just have 6 textField in each cell ... and cell are many ?
 
it´s a master detail aplication: when the user presses the first cell in the master, he goes to the FIRST table view that has 6 dynamic rows/sections and in EACH sections/rows he has 6 textfields....
 
section and rows are different
 
2:25 PM
the if he presses the second row in the master, he goes to another tableview with more dynamic sections/rows with texfields inside....
 
section can have more than 1 cell
 
not when they are dynamic
 
Okay .... I will make a sample with simple tableView
you adjust it according to you
okay ?
 
if you go to IB and choose dynamic prototype you can only choose the number of prototype cells...
so each cell is a section...no?
 
nope
 
2:26 PM
but ONLY because it´s prototype...
well?
 
cell and section are different
 
yes i know that..but in static content...not in dynamic prototypes...
 
@Japa - I making a sample with simple tableView.
You adjust it according to you
 
right know?
 
okay ?
nope
 
2:28 PM
ok..
 
I dont know how much time it will take
i will give you 2morow
gud luck!
 
ok so i will see you tomorrow...
thanks
 
okay
:-)
 
bey bey
bye bye
 
Bye Bye
 

  last day (2941 days later) »